home *** CD-ROM | disk | FTP | other *** search
/ Alles Voor Internet / Tout Pour Internet / alles voor internet.iso / MacInternet™ / Gophers / Docs / GopherGuide_Jun15b.txt < prev    next >
Text File  |  1993-09-16  |  129KB  |  2,615 lines

  1.  
  2.  
  3. Internet Gopher User's Guide
  4.  
  5. Editor
  6.  
  7. Paul Lindner
  8.  
  9. DISCLAIMER OF WARRANTY
  10.  
  11. COPYRIGHT NOTICE
  12.  
  13. Copyright (C) 1993 by the Regents of the University of Minnesota.
  14.  
  15. All rights reserved.
  16.  
  17. Permission to use, copy, modify, and distribute the Gopher software for non commercial purposes and without fee is hereby granted, provided that the University of Minnesota copyright notices and this permission notice appear in all copies, and that the name University of Minnesota not be used in advertising or publicity pertaining to this software and documentation without specific, written prior permission. The University of Minnesota makes no representations about the suitability of this software and documentation for any purpose. It is provided 'as is' without express or implied warranty.
  18.  
  19. Commercial use of Gopher requires specific permission from the University of Minnesota; contact the internet gopher development team at <gopher@boombox.micro.umn.edu> for further information.
  20.  
  21. Printed in the U.S.A.
  22.  
  23. TRADEMARKS
  24.  
  25. Internet Gopher is a trademark of the University of Minnesota. UNIX is a registered trademark of UNIX system Laboratories, Inc.
  26.  
  27. All other products or services mentioned in this manual are covered by the trademarks, service marks, or product names as designated by the companies who market those products.
  28.  
  29. ISNB 0-000-000000-0
  30.  
  31. ABCDEFGHIJ-DO-89
  32.  
  33. Internet Gopher User's Guide iii
  34.  
  35. CHAPTER 1 Introducing Gopher 7
  36.  
  37. Introduction 7
  38.  
  39. What is the Internet Gopher? 7
  40.  
  41. Types of Information 8
  42.  
  43. Finding Information 9
  44.  
  45. Some Example Information 10
  46.  
  47. Using this Manual 11
  48.  
  49. Platforms Supported 11
  50.  
  51. Conventions used in this Manual 12
  52.  
  53. Support Questions? 12
  54.  
  55. CHAPTER 2 Getting the Internet Gopher Software 15
  56.  
  57. Getting the Software 15
  58.  
  59. Subsequent Retrievals 18
  60.  
  61. Contents
  62.  
  63. Contents
  64.  
  65. iv Internet Gopher User's Guide
  66.  
  67. CHAPTER 3 TurboGopher 19
  68.  
  69. Overview 19
  70.  
  71. Requirements 20
  72.  
  73. Getting Help 20
  74.  
  75. Navigating Gopherspace 21
  76.  
  77.  Alternate Views 23
  78.  
  79.  Connecting to Terminal-based Services 23
  80.  
  81. Advanced Navigation Features 24
  82.  
  83. Authenticated Servers 25
  84.  
  85. Bookmarks and Bookmark files 26
  86.  
  87. Item Attributes 26
  88.  
  89. Canceling Slow Network Operations 27
  90.  
  91. Starting and Configuring TurboGopher 27
  92.  
  93. TurboGopher Options 28
  94.  
  95. Miscellaneous 29
  96.  
  97. For Experts 29
  98.  
  99. CHAPTER 4 PC Gopher III 33
  100.  
  101. System Requirements 33
  102.  
  103. How to Obtain the Software 34
  104.  
  105. Installation 34
  106.  
  107. Installing the Gopher Software 36
  108.  
  109. Configuring Gopher 37
  110.  
  111. Application Configuration 38
  112.  
  113. Network Configuration 40
  114.  
  115. Advanced Network Configuration Options 42
  116.  
  117. Gopher and Command Line Switches 44
  118.  
  119. The Gopher User Interface 46
  120.  
  121. Using Gopher 52
  122.  
  123. Help! 58
  124.  
  125. Acknowledgments 59
  126.  
  127. Internet Gopher User's Guide v
  128.  
  129. Contents
  130.  
  131. CHAPTER 5 The UNIX Gopher Client 61
  132.  
  133. Overview 61
  134.  
  135. Requirements 61
  136.  
  137. Starting the UNIX Gopher Client 62
  138.  
  139. Navigating Gopherspace 62
  140.  
  141. Special Items 63
  142.  
  143. Advanced Navigation Features 65
  144.  
  145. Bookmarks 66
  146.  
  147. Saving and Downloading 66
  148.  
  149. CHAPTER 6 Installing the Unix Gopher Distribution 69
  150.  
  151. Overview 69
  152.  
  153. Requirements 69
  154.  
  155. Compatibility 70
  156.  
  157. NeXT Indexing 71
  158.  
  159. WAIS Indexing 71
  160.  
  161. Preparing to Compile the Distribution 72
  162.  
  163. Other Optional Features 74
  164.  
  165. Special Modifications for Compatibility 75
  166.  
  167. Compiling and Installing the Distribution 76
  168.  
  169. Testing 77
  170.  
  171. CHAPTER 7 Configuring the Unix Server 79
  172.  
  173. Overview 79
  174.  
  175. Requirements 79
  176.  
  177. What is gopherd? 80
  178.  
  179. First Steps 80
  180.  
  181. Adding Information to the Server 80
  182.  
  183. Starting the Gopher Server 84
  184.  
  185. Optional Features for the Gopher Server 85
  186.  
  187. Contents
  188.  
  189. vi Internet Gopher User's Guide
  190.  
  191. CHAPTER 8 Go4gw - The Gopher Gateway 87
  192.  
  193. Overview 87
  194.  
  195. Requirements 88
  196.  
  197. Installation 88
  198.  
  199. Writing New go4gw Gateways 89
  200.  
  201. CHAPTER 9 Common Questions 93
  202.  
  203. Overview 93
  204.  
  205. Internet Gopher User's Guide 7
  206.  
  207. CHAPTER 1 Introducing Gopher
  208.  
  209. This chapter describes how you can use the Internet Gopher system to easily pub lish and retrieve information on a network.
  210.  
  211. Introduction
  212.  
  213. The internet is a wide vast place with many resources available. Searching, finding and retrieving these resources has been difficult in the past. The Internet Gopher was developed to let an average user access these resources quickly and simply.
  214.  
  215. What is the Internet Gopher?
  216.  
  217. All over the world, data is stored on computers, many of which are connected by the Internet, a confederation of computer networks. With Internet Gopher you can easily access publicly available information stored on many of these connected computers.
  218.  
  219. Introducing Gopher
  220.  
  221. 8 Internet Gopher User's Guide
  222.  
  223. Gopher combines features of electronic bulletin board services and databases, allowing you to either browse a hierarchy of documents, or search for documents that contain certain words or phrases.
  224.  
  225. The Internet Gopher software was conceived at the Computer and Information Ser vices department of the University of Minnesota. Software developed at the Uni versity of Minnesota is freely distributable for non-commercial puposes.
  226.  
  227. Types of Information
  228.  
  229. Gopher supports a diverse range of data, all of which can be accessed by a simple keystroke or click of the mouse. Here are some of the most popular data types:
  230.  
  231. Directories
  232.  
  233. The most basic information type in gopher is a directory. A directory is a list of documents. Directories allow easy browsing of information. Items can be organized into specific areas, making it easy to find the information you need.
  234.  
  235. In addition, a special type of directory called a "link" allows gopher to reference directories on a different computer. This allows gopher to traverse a hierarchy of information residing on multiple machines. These links are transparent, you won't notice that you're connecting to another machine.
  236.  
  237. Text Files
  238.  
  239. Most of the information in gopher is stored in ASCII text files. These files can be used with most popular computer applications
  240.  
  241. Search Items
  242.  
  243. This is a special kind of directory. You can specify any number of keywords to a search item. Only those documents that match the given criteria will show up in the resulting list.
  244.  
  245. Internet Gopher User's Guide 9
  246.  
  247. Finding Information
  248.  
  249. Telnet Sessions
  250.  
  251. This item type is a reference to a public telnet connection. Selecting one of these items will connect you to a system using terminal emulation.
  252.  
  253. Phone Books
  254.  
  255. This document type is a special version of the search item based upon the Ph/Qi server developed at the University of Illinois.
  256.  
  257. The phone book search allows you to search on certain fields of a database, such as name, phone number, or address.
  258.  
  259. Multimedia
  260.  
  261. Gopher supports a number of multimedia file formats including images, audio and video file formats. Images such as weather maps are available. Audio data, includ ing the presidential debates is available. Movies in Quicktime and MPEG are avail able.
  262.  
  263. Formatted Text
  264.  
  265. Some Gopher servers will allow you to view documents in formats other than text. Postscript is one of the most popular formats for this "Rich Text."
  266.  
  267. Finding Information
  268.  
  269. When using Gopher, looking for information located in other continents is as easy as looking for information residing on a computer in the next room. When using Gopher, you begin at the first or root level of your home Gopher Server. From there you can choose between two methods or locating information: browsing and searching.
  270.  
  271. Browsing
  272.  
  273. You may want to follow the paths in Gopher from level to level until you find the data you're looking for. From the first level, you can choose a topic, which leads to another level, and another, until you finally come to an item that looks interesting.
  274.  
  275. Internet Gopher User's Guide 10
  276.  
  277. Some Example Information
  278.  
  279. For instance at the University of Minnesota, you might look for a salmon recipe by looking in the Fun & Games directory, then in the Recipes directory, and then in the Seafood directory until you see an item with salmon in its title.
  280.  
  281. Searching
  282.  
  283. Alternatively, you may want Gopher to do the work for you by using a search item. For instance, at the University of Minnesota you could select a search item called Search Recipes. A message prompts you to type in the words you're looking for; you type salmon. The server searches the text of a collection of items and lists the ones that have the word salmon in them. You can then examine these items until you find one that contains a recipe that strikes your fancy.
  284.  
  285. Additionally, some search items will let you specify a complex search expression for your query. If you only had sugar, eggs and chocolate chips, you could search for items that contained all of these words by specifying sugar and eggs and "choc olate chip" to the Search Recipes item.
  286.  
  287. Some Example Information
  288.  
  289. We think the easiest way to get a grasp of the information inside of GopherSpace is to try it. However, for your listing pleasure we have a lisitng of some of the more popular information:
  290.  
  291. * Weather Forecasts and current conditions for the United States and Canada.
  292.  
  293. * Recipes
  294.  
  295. * Movie Reviews.
  296.  
  297. * Computer Questions and Answers.
  298.  
  299. * Weather Maps.
  300.  
  301. * Movies of Chemical reactions.
  302.  
  303. * E-mail addresses and phone books for most major institutions
  304.  
  305. * Newspapers and USENET news.
  306.  
  307. * Full electronic versions of many of the major classics, Shakespeare, Moby Dick, etc.
  308.  
  309. * Library Catalogs from around the world.
  310.  
  311. * And many many more!
  312.  
  313. Introducing Gopher
  314.  
  315. 11 Internet Gopher User's Guide
  316.  
  317. Using this Manual
  318.  
  319. You do not need to read this entire manual to use the Internet Gopher. Most likely, you will only need to read the chapters about the Internet Gopher client for your software.
  320.  
  321. If you wish to publish information you will want to pay attention to the chapters referring to the Internet Gopher servers for your system.
  322.  
  323. The First Steps
  324.  
  325. See "Getting the Internet Gopher Software" on page 15 for information about retrieving and installing the necessary software. Then read the chapter appropriate for your system.
  326.  
  327. Common Questions
  328.  
  329. It's a good idea to read through the"Common Questions" on page 93. This chapter contains answers to the most frequently asked questions about the Internet Gopher - from installing it to serving data.
  330.  
  331. As Needed
  332.  
  333. Chapters x and x may be consulted when you blah blah blah. For an interesting his tory discussion refer to Chapter X - Growing Gopher.
  334.  
  335. Platforms Supported
  336.  
  337. The Internet Gopher works on a number of platforms and operating systems. The operating system for all of the following must have TCP/IP networking support and a connection to a network.
  338.  
  339. Gopher Clients
  340.  
  341. Clients to access data are available for the following platforms:
  342.  
  343. * Macintosh
  344.  
  345. Internet Gopher User's Guide 12
  346.  
  347. Conventions used in this Manual
  348.  
  349. * DOS
  350.  
  351. * Microsoft Windows
  352.  
  353. * Unix, full-screen, emacs and Xwindow
  354.  
  355. * VMS full screen.
  356.  
  357. * NeXTstep
  358.  
  359. * OS/2
  360.  
  361. * VM/CMS
  362.  
  363. * MVS
  364.  
  365. Gopher Servers
  366.  
  367. Servers to publish information are available for the following platforms:
  368.  
  369. * Unix
  370.  
  371. * VMS
  372.  
  373. * Macintosh
  374.  
  375. * VM/CMS
  376.  
  377. * DOS
  378.  
  379. * MVS
  380.  
  381. Conventions used in this Manual
  382.  
  383. This manual uses these conventions:
  384.  
  385. * The Courier font is used to to show sample output of textual clients. Bold Courier is used whenever you have to enter text or commands.
  386.  
  387. * In reference to the Unix Server, gophertop refers to the directory where the gopher source code is installed.
  388.  
  389. * Figure boxes are used to show usage.
  390.  
  391. Support Questions?
  392.  
  393. We hope you enjoy using Gopher and that it helps you in you to access and publish data quickly and easily.
  394.  
  395. Internet Gopher User's Guide 13
  396.  
  397. Support Questions?
  398.  
  399. If you have questions or comments, please send us electonic mail at gopher@boombox.micro.umn.edu. Or send paper mail to the following address:
  400.  
  401. Internet Gopher Development Team
  402.  
  403. 100 Union Street SE #152
  404.  
  405. Shepherd Labs - University of Minnesota
  406.  
  407. Minneapolis, MN 55455
  408.  
  409. Or fax us at +1 (612) 625-6817.
  410.  
  411. Introducing Gopher
  412.  
  413. 14 Internet Gopher User's Guide Internet Gopher User's Guide 15
  414.  
  415. CHAPTER 2 Getting the Internet Gopher Software
  416.  
  417. This chapter will show you how to get the Internet Gopher software. You should only need to read the first section "Getting the Software" on page 15 and the sec tions appropriate to your platform.
  418.  
  419. Getting the Software
  420.  
  421. You will need to retrieve the Internet Gopher Software from the software repository at the University of Minnesota. Follow these instructions to do so.
  422.  
  423. The First Retrieval
  424.  
  425. Most of the software for the Internet Gopher is available on the machine boombox.micro.umn.edu. This machine is on the Internet network. To retrieve the software for the first time you'll need to use an FTP client on a local machine con nected to the internet.
  426.  
  427. FTP, the file transfer protocol, is a quick, reliable and widely popular means of transferring files across the Internet.
  428.  
  429. Getting the Internet Gopher Software
  430.  
  431. 16 Internet Gopher User's Guide
  432.  
  433. FTP clients come in many varieties. On a Unix or VMS system the command is called ftp. On the Macintosh there are two ftp applications, Fetch, and Xferit. NCSA has developed a version of ftp for the IBM-PC called `ftp'. Refer to your local network administrator if you don't have an ftp client.
  434.  
  435. Once you connect to the boombox server you will want to change to the directory
  436.  
  437. /pub/gopher
  438.  
  439. The different portions for gopher are in this directory. The file 00README con tains descriptions of each directory. Refer to Table 1, "Available Gopher Software," on page 16 for a breakdown of the contents of each directory.
  440.  
  441. TABLE 1. Available Gopher Software
  442.  
  443. Directory Description
  444.  
  445. Mac_server Gopher server for the Macintosh
  446.  
  447. Macintosh-TurboGopher A graphical Gopher client for the Macintosh
  448.  
  449. NeXT A graphical Gopher client for NeXTstep
  450.  
  451. PC_client A graphical Turbovision based client for PCs running DOS and using the Clarkson/Crynwr packet drivers
  452.  
  453. PC_server Two PC Gopher server implementations, one based on Phil Karn's NOS, another using Clarkson/Crynwr packet drivers.
  454.  
  455. Rice_CMS A Gopher server and client for VM/CMS systems written at Rice University.
  456.  
  457. Unix Gopher for Unix. Includes a Gopher server, full screen client, Xwindow client, and an emacs client.
  458.  
  459. VMS Gopher for VMS. Includes a Gopher server and full screen client
  460.  
  461. VieGopher A Gopher Server and client for VM/CMS written at Vienna.
  462.  
  463. gopher_protocol Descriptions of the Gopher network Protocol are stored here.
  464.  
  465. incoming Submitted untested gopher software.
  466.  
  467. mvs A Gopher server and client for MVS.
  468.  
  469. os2 A Gopher client for OS/2.
  470.  
  471. Internet Gopher User's Guide 17
  472.  
  473. Getting the Software
  474.  
  475. Each directory contains gopher for a specific platform. You should retrieve the soft ware from the specific directories that are compatible with your hardware and oper ating system. There are README files inside of each directory that will help you decide which files to transfer.
  476.  
  477. Once you find a file that interests you.you should use the GET function of your FTP client. This usually means typing "get filename", or clicking on the appropriate file with your mouse..
  478.  
  479. Some clients, notably Unix, VMS, and IBM-PC will reqire you to specify a binary "transfer mode." You can set this mode by typing binary at the ftp> prompt.
  480.  
  481. Refer to Figure 1, "Using FTP with Unix," for an example ftp session to boombox.micro.umn.edu
  482.  
  483. FIGURE 1. Using FTP with Unix
  484.  
  485. % ftp boombox.micro.umn.edu Connected to boombox.micro.umn.edu 220 boombox FTP server (Version 4.1 Tue Apr 10 05:15:32 PDT 1990) ready. Name (boombox.micro.umn.edu:lindner): anonymous 331 Guest login ok, send ident as password. Password:(TM) 230 Guest login ok, access restrictions apply. ftp> cd /pub/gopher/Unix 250 CWD command successful. ftp> binary 200 Type set to I. ftp> get gopher1.12.tar.Z 200 PORT command successful. 150 Opening BINARY mode data connection for gopher1.12.tar.Z (306512 bytes 226 Transfer complete. 306512 bytes received in 2.4 seconds (1.3e+02 Kbytes/s) ftp>
  486.  
  487. Getting the Internet Gopher Software
  488.  
  489. 18 Internet Gopher User's Guide
  490.  
  491. Subsequent Retrievals
  492.  
  493. Things get easier after the first retrieval. You don't have to use the arcane ftp com mand to get the Gopher software, you can use Gopher itself.
  494.  
  495. You will want to familiarize yourself with your gopher client before doing this though. See the chapters that follow to find out about clients.
  496.  
  497. You can use your Gopher client to connect to the software repository at
  498.  
  499.  boombox.micro.umn.edu
  500.  
  501. And choose the files, just as you would with ftp. However, now you can just select the software you want from the menu instead of typing commands to retrieve the file.
  502.  
  503. Internet Gopher User's Guide 19
  504.  
  505. CHAPTER 3 TurboGopher
  506.  
  507. TurboGopher is a Gopher client for the Macintosh. The following chapter contains information on using, configuring and administrating the TurboGopher application.
  508.  
  509. A Websters definition is:
  510.  
  511.  TurboGopher n. 1. A small rodent with a turbocharger strapped on its back to increase its speed and ferocity. 2. (Amer. colloq.) Native or inhabitant of Minnesota after consuming three double espressos. 3. (Amer. colloq.) An Olympic sprinter who runs errands, does odd-jobs, fetches or delivers documents for office staff. 4. (computer tech.) Speed-optimized Macintosh software following a simple protocol for tunneling through a TCP/IP internet; network speed is achieved by using turbo charged software; incoming bits spin the turbine that pumps out the outgoing bits.
  512.  
  513. Overview
  514.  
  515. TurboGopher is a Macintosh application that we believe is (still!) the fastest Macin tosh Gopher client available. Beyond optimizing TurboGopher for raw speed while fetching documents and directories, we turbocharged the user interface by display
  516.  
  517. TurboGopher
  518.  
  519. 20 Internet Gopher User's Guide
  520.  
  521. ing information as soon as possible... you can read the first part of a document or directory while the rest is being fetched. This version of TurboGopher also supports many of the Gopher+ extensions to the original Internet Gopher protocol.
  522.  
  523. In spite of the design goal to run fast as possible, TurboGopher is a good Mac citi zen: it shares time with other applications. You can put TurboGopher in the back ground to fetch lengthy items in the background while you work in another application in the foreground.
  524.  
  525. Requirements
  526.  
  527. You will need a copy of the TurboGopher application, if you haven't retrieved this yet refer to"Getting the Internet Gopher Software" on page 15. You will also want to retrieve the "helpler applications." These applications will allow you to connect to telnet sites, view graphics, etc.
  528.  
  529. TurboGopher requires a Macintosh running a system 6.0.7 or later. We highly rec comend using System 7 or higher. Without it you won't be able to automatically launch the "helper applications."
  530.  
  531. You should have at least one megabyte of memory, more if you're using Multi finder or System 7.
  532.  
  533. You will need a correctly configured copy of MacTCP and a network connection. If you don't have MacTCP you can get it from the Apple Programmers and Develop ers Association (APDA). MacTCP is a licensed product, it is not free.
  534.  
  535. Getting Help
  536.  
  537. The information in this chapter can also be found by picking the menu item "Help" from the "Gopher" menu of TurboGopher.
  538.  
  539. In addition to this information you are reading right now, if you are using System 7 (and we strongly recommend that you do), some Balloon Help is available in Tur boGopher. See your Macintosh System 7 documentation for information on using Balloon Help.
  540.  
  541. Internet Gopher User's Guide 21
  542.  
  543. Navigating Gopherspace
  544.  
  545. FIGURE 2. TurboGopher-Top Level
  546.  
  547. Navigating Gopherspace
  548.  
  549. To navigate through gopherspace, double-click on any interesting items to open (fetch) them. If you double-click on a file, TurboGopher will fetch and display the file. Opening a folder will let you view its contents. Double-clicking on the ques tion-mark (Search) icons will let you search a database. On most gopher servers these databases are full-text indexes of a collection of information. Full-text index means that every word in every document is considered a keyword. The best way to search a gopher full-text database is specify the words for which to search when TurboGopher presents you with a dialog box. The results of the search are returned as a list of documents containing those words.
  550.  
  551. Phone Books
  552.  
  553. If you double-click on the phone-book icons you can search electronic phone books. Phone book databases are structured in the sense that they have fields (i.e. a
  554.  
  555. TurboGopher
  556.  
  557. 22 Internet Gopher User's Guide
  558.  
  559. name field, an address field, and a phone number field). The simple phone-book lookup dialog assumes that you want to search for someone by name. Click on the `More Choices' button if you wish to specify exactly which fields to search in, when you formulate a query. The result of the query is displayed in a document.
  560.  
  561. FIGURE 3. TurboGopher- Phone Book Search
  562.  
  563. Software Archives
  564.  
  565. Disk icons represent archived Mac software or documents that you can fetch; these items will be saved to your hard disk. Such items are often stored in compressed form to save space. You need to have certain Mac utilities to `uncompress' such items. The most common such utilities are StuffIt and Compactor. Both may be obtained from the Info-Mac archives with gopher. If you are running System 7 and TurboGopher retrieves an item that needs to be `unstuffed' or `uncompacted', it will ask you if it should open them via Finder and the appropriate decompress util ity. We recommend that you use CptExpand and SitExpand for your decompress needs; both of these are available with the TurboGopher software distribution as well as from the Info-Mac archives.
  566.  
  567. Internet Gopher User's Guide 23
  568.  
  569. Alternate Views
  570.  
  571. Items that are specific to MS-DOS are seen as documents with a tiny `PC' embla zoned on them; similarly items specific to UNIX show up as documents with a tiny `UX' on them. You can retrieve either of these kinds of items if you like. TurboGo pher will ask you if you wish to save them to your disk. You may not `view' these items as text. In fact it will probably make very little sense to fetch such items unless you intend to further transfer them later from your Mac to another kind of computer, or if you have some special tools on your Mac that will allow you to use these kinds of items.
  572.  
  573. Pictures
  574.  
  575. Items appearing as documents with a starburst on them are probably graphics or picture files (typically in GIF, JPEG, or PICT format). TurboGopher will transfer such files, save them on your disk, and optionally launch a picture-viewing applica tion if you wish to view the picture.
  576.  
  577.  Alternate Views
  578.  
  579. Gopher+ server may store more than one representation of a document (an image, text, sound, video, etc. ). If more than one view of a document is available, you can select between the views by choosing the `Get Alternate Views' item from the Gopher menu. When alternate views are available, an alternate view window will be displayed with descriptions of the views.
  580.  
  581. For many alternate views of documents, TurboGopher will save a copy of the item to your Macintosh's disk, and then (under System 7) ask the Finder to launch a helper application to actually display the item. You can configure which applica tions should be used as TurboGopher helpers; to do this see the section on configu ration options.
  582.  
  583.  Connecting to Terminal-based Services
  584.  
  585. Opening the `terminal' icons will make TurboGopher launch NCSA Telnet (or TN3270 if appropriate) and start a terminal session to a terminal-based information system. Typically these are library catalogs or other such services. Note that for this
  586.  
  587. TurboGopher
  588.  
  589. 24 Internet Gopher User's Guide
  590.  
  591. to work, you need to have Telnet or TN3270 installed on your Macintosh. If you are still running System 6, TurboGopher will only save a Telnet session file rather than launch Telnet; this is another good reason to run System 7 on your Mac.
  592.  
  593. Following the Macintosh guidelines, TurboGopher starts out displaying text in the standard application font. The Font and Size menu items let you change font appearance for documents and lists. TurboGopher will attempt to display phone book lookup results in a monospaced font (Monaco), effectively ignoring your font selection. It IS possible to change the font of a phonebook results lookup window after it has been opened; however things will not line up correctly and generally look icky.
  594.  
  595. Advanced Navigation Features
  596.  
  597. If you double-click on a folder while holding down the Option key, TurboGopher will re-use the current window instead of using a new one to display the folder con tents. Some folks like to do this to prevent screen clutter and keep from having too many open windows.
  598.  
  599. You may use the up and down arrow keys on your keyboard to move up and down lists in windows. The Enter or Return key opens an item (and is equivalent to dou ble-clicking on an item). Use of the arrow keys is not supported on the Mac Plus.... (sorry).
  600.  
  601. You may also type the first letter (or first few letters) of an item name in a list and TurboGopher will highlight the first item it finds that matches (sort of like the Finder does in list views). The Find menu item is available to locate an item in a list: just type a string in the Find dialog. Find can also be used to search for text in open document windows, by the way.
  602.  
  603. To delete any item in any list window, click once on the item to select it. Then choose `Delete Item' from the Gopher menu.
  604.  
  605. TurboGopher remembers the last full-text index search (item with question-mark icon) you used. If now you hold down the Option key and double-click on a word in a document window, TurboGopher will query that search service for all documents containing the word you selected. You must use a search service before this pseudo hypertext capability is accessible (TurboGopher needs to know which search ser vice to use in your hypertext query).
  606.  
  607. Internet Gopher User's Guide 25
  608.  
  609. Authenticated Servers
  610.  
  611. The Recent menu lets you go back to any directory window you have viewed dur ing your Gopher session. The left and right arrow keys may be used to go to previ ous or next windows; they are equivalent to traversing the recent menu upwards or downwards. Note that the Recent menu only remembers directory windows you visit. Document or phone-book lookup windows are not listed.
  612.  
  613. If you close a window by clicking in its close box while holding down the Option key, then (like Finder) TurboGopher will close all open windows.
  614.  
  615. If you click in the close box while holding down the Shift key, then the cache of information about that window will be released. So the next time you open this window from the recent menu, TurboGopher will have to fetch the contents over the net once more.
  616.  
  617. Of course, if you hold down both Option and Shift keys then all windows are closed and all caches released. Caches are explained below.
  618.  
  619. For the terminally curious, if you hold down the Shift key while single clicking on an item in a list, TurboGopher will display the item's Gopher selector string, host name, port number and Gopher+ baggage in the status pane. This is a quick peek. If you want to copy-paste this information, use the Get Attribute Info menu item found under the Gopher menu; the information you want is in the +INFO attribute (the first line).
  620.  
  621. If wish to fetch an item that is a Macintosh file (binhexed file, shows up with the icon of a disk), but don't want TurboGopher to automatically dehex it as it fetches, you may force TurboGopher to fetch the document as a raw, unprocessed file. To do this, hold down the Control key while you double-click on the item. For folks using DownLine or other applications for de-binhexing and de-archival, this is one way to do what you want.
  622.  
  623. Authenticated Servers
  624.  
  625. TurboGopher now supports AdmitOne Authentication for Gopher+ servers that restrict access to information on a per-user basis. When you attempt to open a direc tory that has such access restrictions, TurboGopher will prompt you for your user name and password on the restricted-access server. TurboGopher and the server negotiate to establish a valid ticket, and subsequent requests to the server use a new
  626.  
  627. TurboGopher
  628.  
  629. 26 Internet Gopher User's Guide
  630.  
  631. ticket for each request. This means that your password is never sent over the net work, and that you only have to enter your password to get the initial authorization.
  632.  
  633. Bookmarks and Bookmark files
  634.  
  635. If you formulate a search or find a folder you would like to come back to quickly later, you can use the Set Bookmark menu item to save your place. Set Bookmark saves a reference to a folder, file, search, terminal session... in fact any Gopher item. If nothing is selected in the front list window, a bookmark is made for a folder representing the window. Try it, it's easier to do than to say.
  636.  
  637. Bookmarks are placed in a special Bookmarks window. Use the Show Bookmarks menu item to open the Bookmarks window. Bookmarks are remembered even after you quit TurboGopher; contents of the Recent menu are however forgotten. It might be useful to consider the Bookmarks window to be a special kind of `work sheet' or `construction area' for you to build your own scratch-pad of useful gopher resources.
  638.  
  639. You can save your Bookmarks window or ANY list window or ANY selected item as a Bookmark file (`Save as Bookmark FileI' menu item). Bookmark files are small and may be exchanged with other Gopher users if you wish.
  640.  
  641. The `Import Bookmarks' menu item lets you read a Bookmark file right into your Bookmarks window. The `Open Gopher Bookmark File' menu item on the other hand, places the contents of a bookmark file in a window of its own. The latter is equivalent to double-clicking on bookmark files from the Finder. If you launch Tur boGopher by double-clicking on a bookmark file, it will not immediately connect to the Home Gopher server, but will open the Bookmark file instead. So you may use bookmark files as custom Home Gopher servers.
  642.  
  643. Item Attributes
  644.  
  645. More sophisticated Gopher servers (referred to as Gopher+ servers) can provide you with information about any selected item, much like the Finder's Get Info menu lets you get information about a Mac item.
  646.  
  647. Internet Gopher User's Guide 27
  648.  
  649. Canceling Slow Network Operations
  650.  
  651. Use the `Get Attribute Info' menu item of the Gopher menu for this.
  652.  
  653. Canceling Slow Network Operations
  654.  
  655. TurboGopher executes most requests in a few seconds. A document or directory is displayed as it is received. However, if a server is especially slow or busy or if you have started to fetch what appears to be a very long and uninteresting document or directory, you may cancel the fetching process by closing the document or directory window. Once you have closed the window, TurboGopher assumes that it does not need to fetch the remainder of the item. Note that when you fetch a file that is saved to your Mac disk, TurboGopher displays a window with the status of the fetch. Again, to cancel the fetch operation you can simply close the window.
  656.  
  657. A more extreme method for canceling a network operation is to choose the Cancel All Requests item from the Gopher menu (or by holding down the command key and typing a period). If you open a file or folder by double-clicking while holding down the Option key (to conserve screen space as described earlier), TurboGopher will also cancel the running network transaction if one is outstanding; and this is in fact exactly what you want over low speed connections such as SLIP. Both these features make TurboGopher seem faster and more responsive over SLIP links.
  658.  
  659. TurboGopher runs happily in the background (if you wish to fetch something very large or from a very slow server). You may also fetch an item (file or directory) while another one is still being fetched, since TurboGopher supports multiple con current streams. Command-Period will cancel all active streams.
  660.  
  661. Starting and Configuring TurboGopher
  662.  
  663. The `Start Gopher' item under the File menu opens a window containing the initial directory fetched by connecting to your home Gopher server. TurboGopher is pre configured to connect on startup to one of the University of Minnesota's Gopher servers. You may change your home Gopher server by using the `Configure' item under the Setup menu. To do this you need the full Internet domain name and port of the desired primary server. You can configure TurboGopher to use one of two alternate primary servers. This distributes the load for a campus over two different (but equivalent) primary servers and it prevents a single point of failure. TurboGo
  664.  
  665. TurboGopher
  666.  
  667. 28 Internet Gopher User's Guide
  668.  
  669. pher will randomly try one of the two and then try the other if the first is down. If you don't understand this, you don't have to bother with it or with the Another Gopher item under the File menu.
  670.  
  671. TurboGopher attempts to speak Gopher+ to all Home Gopher servers, and then backs off if it sees that the server does not have Gopher+ style items. This is a bit presumptuous, and it confuses some servers. These servers should be revised in the future so they don't confuse so easily. If configured to connect to a Home Gopher server and nothing is displayed, you may want to try using the `Another Gopher' item under the file menu and making sure that the gopher+ check box is NOT checked.
  672.  
  673. TurboGopher Options
  674.  
  675. You can use the Options item under the Setup menu to customize some behaviors of TurboGopher. The Single Directory Window checkbox makes TurboGopher recycle its windows whenever you open a new directory (and not just when you hold down the Option key).
  676.  
  677. Use the ISO Latin-1 checkbox if you need to use Latin/Romance language charac ters. Many sites in Europe have a need for this to display their national characters. If you visit European gopher servers and the accented characters don't display cor rectly, you may want to choose this option.
  678.  
  679. The Extended Directory listings checkbox is disabled; it's for a future feature.
  680.  
  681. If you visit Gopher servers with Japanese or Chinese documents, and you use a Jap anese or Chinese font while running System 7.1's WorldScript, Gopher will display Japanese SJIS (MS Kanji) or traditional Chinese characters (BIG-5).
  682.  
  683. When you save documents, TurboGopher normally saves them as MacWrite II TEXT documents (we like MacWrite II). If you'd rather save them as TEXT docu ments of your favorite word processor or editor, use the appropriate `Set' button in the Options dialog to select the word processor of your choice.
  684.  
  685. With Gopher+ servers, items may be available in a number of alternate views. When fetched, these alternate views are typically saved as a file to be viewed by a Mac application. If you are a network/macintosh cowboy, you can change the Mac application and Mac filetype associated with a Gopher+ alternate view.... this
  686.  
  687. Internet Gopher User's Guide 29
  688.  
  689. Miscellaneous
  690.  
  691. changes the helper application that TurboGopher asks the finder to launch to view the document. Double-click the view in the list and you will be presented with a dialog in which you can select the application to be used as a TurboGopher helper.
  692.  
  693. By the way, you won't be able to do this if you're running System 6...
  694.  
  695. Miscellaneous
  696.  
  697. TurboGopher saves or caches the item lists for all visited directories (even when windows are closed). Since these lists don't ever have to be fetched from the server again, this dramatically increases speed when choosing any item from the Recent menu. If TurboGopher runs out of memory it will first inform you and then auto matically release the caches for closed windows.
  698.  
  699. As mentioned earlier, you may selectively release a directory's cache by closing the window while holding down the Shift key if you wish more control over memory.
  700.  
  701. TurboGopher stores what it needs in a file called TurboGopher Settings; this lives in the Preferences folder, which is found in your System Folder. If you drag this file out from the Preferences folder and place it in the same folder as TurboGopher, it will still be found and used.
  702.  
  703. For Experts
  704.  
  705. This section describes features of TurboGopher that either network administrators or Gopher weenies would want to know.
  706.  
  707.  Waking up TurboGopher.
  708.  
  709. When TurboGopher starts up, it looks for the TurboGopher Settings file first in its own folder, and failing that in the Preferences folder. If it finds the TurboGopher Settings file, it uses the settings and resources (more on this later) it finds inside. If it cannot find the file, it creates a new one in the Preferences folder based on its internal defaults (more on this later too). If there are any bookmarks the user had set in the Bookmarks worksheet window, the Bookmark worksheet window is opened.
  710.  
  711. TurboGopher
  712.  
  713. 30 Internet Gopher User's Guide
  714.  
  715. If the user had deleted all bookmarks, the Bookmarks window is not opened (the contents of the Bookmark worksheet window are remembered via the Settings file).
  716.  
  717. Next TurboGopher looks to see if the user has launched it by double-clicking on a Bookmark file (or by dropping a Bookmark file on it under System 7). If this is so, the contents of the Bookmark file (more on format later) are read and placed in a list (directory) window; in this case TurboGopher will not make a connection immedi ately to the Home Gopher Server.
  718.  
  719. If TurboGopher was launched directly (not via a Bookmarks document) then it con nects to the Home Gopher Server, retrieves the contents of its top directory, and places this in a list (directory) window. At this point, TurboGopher is fully up and running. Next we need to describe the various parts alluded to above.
  720.  
  721.  The Home Gopher Servers
  722.  
  723.  Out of the box, TurboGopher comes preconfigured to connect AT RANDOM to one of the two primary gopher clones (gopher.tc.umn.edu or gopher2.tc.umn.edu; the former is also known to old Gopher folks as gopher.micro.umn.edu) at the Uni versity of Minnesota. It must be emphasized that these are NOT a primary and sec ondary server: they contain exactly the same information and changes made to one are automatically propagated to the other. If the first connection attempt fails, Tur boGopher will try the next. This has two purposes. First, initial connections are very reliable for users and since we serve as the world's Gophermeisters, this is good. More importantly for us, the randomization ensures that users will spread the load over our two small, economical, primary servers (Mac IIci's). If your campus' primary Gopher server experiences heavy use, we suggest you make a clone too.
  724.  
  725. The user may of course reconfigure for only one primary server. TurboGopher remembers this via the Settings file. A campus network administrator may directly set TurboGopher's internal primary server defaults by altering STR# ID 3002 using ResEdit. The first 3 strings are for one alternate server, the next 3 are for the other. Leaving one or the other triplet empty implies that no clone servers are available. The first string in the triplet is the server's domain name, the second is the port, the third denotes whether it is a Gopher+ server (ignore this for now).
  726.  
  727.  Other Built-in Information
  728.  
  729. A campus network administrator may also change the default bookmark set that TurboGopher carries around with him. This is stored in a `TEXT' resource called
  730.  
  731. Internet Gopher User's Guide 31
  732.  
  733. For Experts
  734.  
  735. `BookMarks'. It contains Gopher item descriptors EXACTLY as they come in off the net, ie:
  736.  
  737. Display-String<TAB>Selector-String<TAB>hostName<TAB>port<CR><LF>
  738.  
  739. NOTE: Ugly linefeed after the <CR>
  740.  
  741. The built-in manual is stored as `TEXT' resource called "HeLp". While you can replace that, we certainly don't encourage you to do so.
  742.  
  743. Finally, most of the important English text for status messages etc. are stored in STR# resources, The primary one of these is STR# resource ID 3003. This is important for international localization purposes.... but read on.
  744.  
  745. Bookmark file formats
  746.  
  747. Bookmark files contain just the Gopher item descriptor lines that a Gopher client would ordinarily retrieve over the net. Please read the Internet Gopher protocol document for more information on this. Gopher bookmark files contain text. The fileType is not `TEXT' however, so if you wish to edit one with a word processor or text editor, you will have to either change its fileType or use a permissive editor. Each line contains the familiar:
  748.  
  749. Display-String<TAB>Selector-String<TAB>hostName<TAB>port<CR>
  750.  
  751. NOTE: This is Mac text... SO NO LINEFEEDS AFTER THE <CR>
  752.  
  753. Bookmark files have the type `BKMK' and creator `MDDF'. The Import Book marks menu item allows you to ATTEMPT to read any filetype you want and treat it as a Bookmark file. Please use this with caution. While TurboGopher will attempt to make sense out of the file, and will reject most junk files, you definitely are on thin ice here. The Open Gopher Bookmark File menu item however will only let you open bonafide Bookmark Files.
  754.  
  755.  ISO Translation Table
  756.  
  757. The ISO Latin-1 character set translation tables used by TurboGopher were kindly supplied by Jean-Pierre Kuypers <Kuypers@sri.ucl.ac.be>, Pascal Maes <Mae s@elec.ucl.ac.be>, and Andre Pirard <Pirard@VM1.ulg.ac.be> They are stored in taBL resources with ID 1001 and 1002.
  758.  
  759. TurboGopher
  760.  
  761. 32 Internet Gopher User's Guide
  762.  
  763.  The TurboGopher Settings file
  764.  
  765. We don't want you mucking around inside the data fork of a Settings file, so we aren't going to encourage you to do it by spelling out the format (though anyone with a disk editor and a room temperature IQ can figure it out).
  766.  
  767. We DO want you mucking around inside the resource fork of the Settings file though. When it is created by TurboGopher, the TurboGopher Settings file has no resource fork. If you add one by opening the file with ResEdit, then TurboGopher will place the Settings file in its resource search path. This means that if you want some custom resource to be used by TurboGopher, you may place it in the resource fork of the Settings file rather than munging around inside TurboGopher's applica tion resource fork.
  768.  
  769. We would like you to place things like string localizations, custom code resources, and overridden configuration resources here for your local users. This way, you can distribute a localized TurboGopher Settings file on your campus and you shouldn't have to scramble to patch the application every time we release a new version. Cer tainly we might add more strings to various STR# resources... but if you drop us a line and tell us what you are doing with the resources, we will inform you before we release any new versions of TurboGopher that might affect you.
  770.  
  771. We have made provision for TurboGopher to execute external code resources to do certain tasks. At this point we're deciding if we should adopt some new interface for these code resources or to use the interface that Mac folks are very familiar with: XCMDs. We will probably wind up giving you access to various internal parts of TurboGopher via XCMDs.
  772.  
  773. Internet Gopher User's Guide 33
  774.  
  775. CHAPTER 4 PC Gopher III
  776.  
  777. This chapter describes PC Gopher III, hereafter referred to as Gopher, a program for IBM and compatible microcomputers that run the MS-DOS operating system. PC Gopher III is a program that lets you search for and retrieve information stored on other computers, known as "gopher servers".
  778.  
  779. System Requirements
  780.  
  781. Gopher runs under DOS version 3.3 or greater and requires 640K of conventional memory.  Gopher will run on a wide range of IBM PCs and compatibles, including the earliest PCs which contained only a monochrome display adapter, with no graphics support.
  782.  
  783. A Microsoft-compatible mouse is helpful but optional.  You must load mouse driver software before running Gopher.  If your mouse contains more than one mouse button, you will only need to use the left mouse button when running Gopher.
  784.  
  785. You must also install a Clarkson (a.k.a. Crynwr) packet driver, a  small piece of software that allows Gopher to communicate with your ethernet card or modem.
  786.  
  787. PC Gopher III
  788.  
  789. 34 Internet Gopher User's Guide
  790.  
  791. As of this writing, Gopher supports ONLY the Clarkson packet driver interface to your ethernet card or modem.  Gopher will not run properly if you are using FTP Software's PC-TCP drivers, nor will it work with LAN Workplace for DOS, PC NFS, or Banyan Vines.
  792.  
  793. How to Obtain the Software
  794.  
  795. The Gopher software consists of one file: GOPHER.EXE.  There are two ancillary files that Gopher will create if it can't find them: GOPHER.REZ, which stores your configuration settings, and GOPHER.BMK, which stores "bookmarks" that you can use to easily re-visit interesting places in gopherspace.  You can obtain the software over the internet via anonymous FTP from
  796.  
  797. boombox.micro.umn.edu
  798.  
  799. Look in the directory called
  800.  
  801. /pub/gopher/PC_client
  802.  
  803. You can also find the Clarkson packet driver collection in the directory called
  804.  
  805. /pub/gopher/PC_client/packet_drivers
  806.  
  807. Installation
  808.  
  809. Connecting To The Internet
  810.  
  811. To run Gopher, your microcomputer must be connected to a local area network (LAN).  Usually, the LAN will be connected to the global internet allowing you to find information located on gopher servers outside of your network.  If you have access to a dial-up SLIP server, you can also use Gopher with a modem instead of a LAN connection.
  812.  
  813. Internet Gopher User's Guide 35
  814.  
  815. Installation
  816.  
  817. LAN Operation
  818.  
  819. For your microcomputer to operate on the LAN, you must have a network adapter card installed.  In order to run Gopher, your network adapter card must be one sup ported by the Clarkson packet drivers.
  820.  
  821. Dial-up Operation
  822.  
  823. If you have access to a SLIP server, you can use Gopher with a modem instead of a network adapter.  You will still need a packet driver; we recommend UMSLIP.COM, which is available via anonymous ftp  to boombox.micro.umn.edu, in the directory
  824.  
  825. /pub/phone
  826.  
  827. In the same directory, you can find PHONE.EXE, a phone-dialer program that may be helpful in establishing your SLIP server connection.
  828.  
  829. Installing the Packet Driver
  830.  
  831. In order to run Gopher, the appropriate packet driver must first be loaded into mem ory; it's easiest to do this automatically each time you start up your computer.
  832.  
  833. Each packet driver is a specialized piece of software designed to "talk" to a specific type of network adapter card; since all of the packet drivers have the same inter face, this allows one version of Gopher to run on a wide range of  network adapters. The packet driver collection includes documentation that you can use to determine which driver you need to use with your network adapter.
  834.  
  835. To load the packet driver,  type the packet driver name, followed by the necessary parameters, as described in the documentation that comes with the packet driver set.  For example, suppose you have a 3Com 3c523 ethernet card installed in your PC.  To load it, you would type
  836.  
  837. 3C523 0x60 0x3 0x300
  838.  
  839. and hit the enter key (note that different packet drivers require different parameters; see the packet driver documentation for the correct parameters for your packet driver). As long as you do not turn the power off to your computer, you can run Gopher, quit and do other things, and then start Gopher again without re-loading the packet driver. Also, if you already have the packet driver loaded for other pro
  840.  
  841. PC Gopher III
  842.  
  843. 36 Internet Gopher User's Guide
  844.  
  845. grams like FTP, Telnet, or tn3270, you do not need to re-load the packet driver before running Gopher.
  846.  
  847. If you'd like the packet driver to load automatically whenever you start up your computer, you can add the packet driver command and parameters to your AUTOEXEC.BAT file; most people find it easier to let the computer load the packet driver automatically, rather than remember the complicated and arcane parameters necessary.
  848.  
  849. Installing the Gopher Software
  850.  
  851. After you have installed the appropriate packet driver, copy all of the Gopher files into a directory on your hard disk.  For example, if you wanted to install Gopher in a directory called GOPHER, you'd type
  852.  
  853. cd c:\
  854.  
  855. to get to the root directory of your hard disk,
  856.  
  857. mkdir gopher
  858.  
  859. to make a new subdirectory for Gopher,
  860.  
  861. cd gopher
  862.  
  863. to switch to the new subdirectory, and
  864.  
  865. copy a:\*.*
  866.  
  867. to copy the files from the floppy drive to the hard disk.
  868.  
  869. If you already have an older version of  Gopher, such as PC Gopher II v1.05, you must delete all of your old Gopher files BEFORE installing this version.  The one exception to this is your old bookmark file; you can use the included conversion utility called BMKCVT to update this file to the format used by PC Gopher III.
  870.  
  871. Internet Gopher User's Guide 37
  872.  
  873. Configuring Gopher
  874.  
  875. Configuring Gopher
  876.  
  877. When you use Gopher for the first time, you may need to enter some configuration information specific to your microcomputer.  Gopher needs these configuration parameters in order to identify your computer on the network.  This information is stored in a "resource file" called (by default) GOPHER.REZ.  Gopher will automati cally create this file if it can't be found.
  878.  
  879. First, start Gopher by typing
  880.  
  881. GOPHER
  882.  
  883. at the DOS prompt.  Once Gopher starts up, pull down the Configure menu; the menu item called "Application..." will open up Gopher's application configuration dialog box (to pull down a menu, either click on its title with the mouse cursor, or hold down the Alt key and type the first letter of the menu title; to choose an item, either click with the mouse, or use the arrow keys to highlight the item, and hit the ENTER key; to close a menu without choosing any item, hit the ESC key).
  884.  
  885. To enter or edit  any of the parameters in the configuration dialog boxes, use the TAB key (or up and down arrow keys) to advance to the appropriate field.  If the
  886.  
  887. FIGURE 4. PC Gopher Top Level
  888.  
  889. PC Gopher III
  890.  
  891. 38 Internet Gopher User's Guide
  892.  
  893. field is a text field, type in the information.  If the field is a series of checkboxes (a pair of square brackets followed by some text), use the space bar to toggle the checkmark on and off, and the arrow keys to move between checkboxes.
  894.  
  895. Application Configuration
  896.  
  897. Home Gopher Server
  898.  
  899. This is the name of any gopher server on the network.  Your organization may be running its own gopher server; if not, you are welcome to use our server, which goes by the name of :
  900.  
  901. gopher.tc.umn.edu
  902.  
  903. Gopher will attempt to connect to this server when you issue a "New Gopher" com mand.  Your explorations are not restricted to information stored on this particular server, but you will always start off here.
  904.  
  905. Port Number
  906.  
  907. This is the port number that Gopher will use to attempt to connect to the gopher server named above.  Currently, gopher servers use port 70 for connections.
  908.  
  909. Alternate Gopher Server and Port Number
  910.  
  911. If your home server doesn't respond when you try to open a new browser window, Gopher will try to connect to this server instead.  You might want to configure this to gopher2.tc.umn.edu, port 70; this server replicates the information on gopher.tc.umn.edu.
  912.  
  913. Terminal Sessions
  914.  
  915. Some services available in gopherspace require a standard terminal interface, rather than Gopher's point-and-click interface.  To access these services, you need a piece of software called a terminal emulator.  The two most popular terminal types used by non-gopher services are the DEC VT100 and IBM 3270 terminals; conse
  916.  
  917. Internet Gopher User's Guide 39
  918.  
  919. Application Configuration
  920.  
  921. quently, Gopher allows you to configure two terminal emulation programs, one for each kind of session (you don't need to worry about which program to use with which service; Gopher will automatically launch the right one for the job).
  922.  
  923. In the input line title "Telnet Session Command Line", enter the path and filename of your VT100 emulator, and the parameters you want to pass to the program. Gopher knows how to interpret certain symbols within the command line, replacing them with information that can't be generated until immediately before the session is started.  The symbols and what they're replaced by at runtime are:
  924.  
  925. At a minimum, you need to include the symbols %n and %p as parameters; Gopher will replace these with the name and port number of the machine it needs to connect to.
  926.  
  927. For example, if the VT100 emulator you're using was in the same directory as gopher, C:\GOPHER, and it was called VT100.EXE, you'd set the command line up like this:
  928.  
  929. C:\GOPHER\VT100.EXE %n %p
  930.  
  931. If your VT100 program needs a "#" in front of the port number, set the command line up like this:
  932.  
  933. C:\GOPHER\VT100.EXE %n #%p
  934.  
  935. Below the command line is an input line for you to enter the amount of memory necessary to run the program.  If you leave this at zero, Gopher will always try to run the program; if you set it to a number other than zero, Gopher will warn you if memory is too low to run the program, and allow you to cancel the operation or, if you are brave, continue.
  936.  
  937. TABLE 2. PC Gopher Telnet Command Substitutions
  938.  
  939. Symbol Meaning
  940.  
  941. %a address of target machine
  942.  
  943. %n name of target machine
  944.  
  945. %p port number of service on target machine
  946.  
  947. PC Gopher III
  948.  
  949. 40 Internet Gopher User's Guide
  950.  
  951. By default, Gopher will try to swap itself to disk before running external programs, so normally you'll want to set the memory required to zero.  If allowing Gopher to swap to disk is causing problems, you may need to disable swapping with the / NOSWAP switch; in this case, you should set the memory requirement to whatever your external program needs, as a safety measure.
  952.  
  953. The line entitled "TN3270 Session Command Line" works in exactly the same fashion as the Telnet Session Command Line item.  The program that you enter here will be used to connect to IBM3270 based services.
  954.  
  955. Options: New Gopher On Startup
  956.  
  957. If this checkbox is checked, the program will automatically attempt to connect to the gopher server entered in the Home Gopher Server input line, whenever Gopher is started.  If not checked, you will have to select New Gopher from the File menu or the status bar to start the initial gopher session.
  958.  
  959. Options: Single Window Mode
  960.  
  961. Ordinarily, Gopher will open a new window each time you look in a directory.  If you check this checkbox, Gopher will reuse the same window, and will add a "Go Back" button to the bottom of the window to allow you to quickly return to directo ries that you've already seen.
  962.  
  963. Network Configuration
  964.  
  965. To open Gopher's network configuration dialog box, choose "Network..." from the "Configure" menu.
  966.  
  967. All computers that use the internet need addressing information, so that data gets "delivered" to the right place.  There are two ways to set up this information in Gopher; by hand, or automatically, via the BOOTP protocol.  BOOTP allows your microcomputer to ask a server for network addressing information..  Your network administrator will know if you have access to BOOTP.
  968.  
  969. Gopher is set up to use BOOTP by default.  If you have access to BOOTP, you don't need to enter any addressing  information at all; you can skip to the next section.
  970.  
  971. Internet Gopher User's Guide 41
  972.  
  973. Network Configuration
  974.  
  975. Microcomputer IP Address
  976.  
  977. This is the IP address of your individual microcomputer or workstation.  See your network administrator for a microcomputer IP address assignment.
  978.  
  979. Microcomputer Netmask
  980.  
  981. The netmask parameter has to do with how your local area network is configured and connected to the backbone network at your work site.  See your network administrator for the correct value to enter here.  Many sites are configured to use a netmask of 255.255.255.0.
  982.  
  983. Nameservers
  984.  
  985. A name server converts a gopher server name into machine-readable address. Gopher relies heavily on nameservers; if you don't have access to one, you won't be able to use Gopher.  You may enter up to four nameserver addresses; they will be tried in the order in which they are entered.
  986.  
  987. FIGURE 5. PC Gopher Application Configuration
  988.  
  989. PC Gopher III
  990.  
  991. 42 Internet Gopher User's Guide
  992.  
  993. Gateways
  994.  
  995. A gateway is a device which gives your computer access to the outside world.  If you want to use Gopher to look at information on servers beyond your local area network, you must specify the address of your gateway.  You may enter up to four gateway addresses; they will be tried in the order in which they are entered.  Your network administrator can tell you the addresses of gateways accessible to you.
  996.  
  997. Advanced Network Configuration Options
  998.  
  999. There are several advanced configuration parameters that can be used to tune net work performance; these parameters can usually be left at the default settings.
  1000.  
  1001. Gopher Query Timeout
  1002.  
  1003. This is the maximum number of second that Gopher will wait for a response from a server, after sending a query.
  1004.  
  1005. FIGURE 6. PC Gopher Network Configuration
  1006.  
  1007. Internet Gopher User's Guide 43
  1008.  
  1009. Advanced Network Configuration Options
  1010.  
  1011. TCP Connect Timeout
  1012.  
  1013. This is the maximum number of seconds that Gopher will wait for acknowledgment of an attempt to open a connection to a server.
  1014.  
  1015. Name Lookup Timeout
  1016.  
  1017. This is the maximum number of seconds allowed for the nameserver on the net work to convert a gopher server name to a machine-readable address.
  1018.  
  1019. Retransmit Timeout
  1020.  
  1021. This is the maximum number of second that Gopher will wait before retransmitting a packet of data that hasn't been acknowledged.
  1022.  
  1023. Maximum Transfer Unit
  1024.  
  1025. This is the largest size TCP/IP packet that Gopher will send.
  1026.  
  1027. Maximum Segment  Size
  1028.  
  1029. This is the maximum size packet that Gopher will accept; since Gopher cannot accept "fragmented" packets, this number must be small enough that the server won't be tempted to fragment packets as they are sent.
  1030.  
  1031. TCP Window Size
  1032.  
  1033. This is the size of the TCP/IP data buffer.
  1034.  
  1035. When you've finished setting up the network configuration parameters, confirm your changes by choosing the "OK" button, or cancel them by choosing the "Can cel" button.
  1036.  
  1037. PC Gopher III
  1038.  
  1039. 44 Internet Gopher User's Guide
  1040.  
  1041. Configuration Data File
  1042.  
  1043. All of the parameters that you enter in the configuration dialog boxes are stored in a file called (by default) GOPHER.REZ.  If this file is damaged or lost, all of your con figuration data will have to be reentered.
  1044.  
  1045. You can tell Gopher to use an alternate configuration file by using the /R command line switch.  See the section entitled "Gopher and Command Line Switches" for further information.
  1046.  
  1047. Gopher and Command Line Switches
  1048.  
  1049. To start Gopher, type
  1050.  
  1051. GOPHER
  1052.  
  1053. at the DOS prompt.
  1054.  
  1055. Gopher understands several command line switches, which can be used to modify its default behavior.  Note that if you install all of the Gopher files in a single direc tory on your hard drive, you won't need to use most of these.
  1056.  
  1057. The usage of command line switches is as follows:
  1058.  
  1059. /SWITCH=VALUE
  1060.  
  1061. if the switch requires a value, or just
  1062.  
  1063. /SWITCH
  1064.  
  1065. if it doesn't.  You will need to substitute a "-" for the "=" if you're trying to pass these parameters into a batch file, since DOS will eat all of the "=" characters
  1066.  
  1067. The /R Switch
  1068.  
  1069. By default, Gopher expects to get resources and configuration information out of a file called GOPHER.REZ, in the same directory as GOPHER.EXE.  You can use a different directory and/or filename by starting Gopher like this:
  1070.  
  1071. Internet Gopher User's Guide 45
  1072.  
  1073. Gopher and Command Line Switches
  1074.  
  1075. GOPHER /R=D:\PATH\FILE.EXT
  1076.  
  1077. replacing D:\PATH\ with the path to the alternate resource file, and FILE.EXT with the alternate file's name and extension.
  1078.  
  1079. Network administrators can use this switch to create separate configuration files for each client on the network; however, since Gopher reads from AND writes to the resource file, it CANNOT BE PLACED IN A READ-ONLY DIRECTORY.
  1080.  
  1081. The /B Switch
  1082.  
  1083. This switch also works like the /R switch, but it tells Gopher where to store book marks.  By default, Gopher will save any bookmarks you create in GOPHER.BMK, in the same directory as GOPHER.EXE; you can use a different bookmark file by starting Gopher like this:
  1084.  
  1085. GOPHER /B=D:\PATH\FILE.EXT
  1086.  
  1087. replacing D:\PATH\ with the path to the alternate resource file, and FILE.EXT with the alternate file's name and extension.
  1088.  
  1089. If you're installing Gopher on a Novell server, the bookmark file must be in a write able directory.
  1090.  
  1091. The /T and /X Switches
  1092.  
  1093. These switches can be used to tell Gopher where you'd like to store saved text and binary files, respectively.  Ordinarily, Gopher offers to save files in the same direc tory as the file GOPHER.EXE; you can "aim" at a different directory by starting Gopher like this:
  1094.  
  1095. GOPHER /T=D:\PATH /X=D:\PATH
  1096.  
  1097. replacing D:\PATH with the directory that you want  to use.  You will still be prompted for a filename when saving a file, and you'll be able to navigate through the directory hierarchy on your hard disk with the file-save dialog box; this switch just sets the directory that you're shown first.
  1098.  
  1099. PC Gopher III
  1100.  
  1101. 46 Internet Gopher User's Guide
  1102.  
  1103. Switches Used to Pass IP Address Information
  1104.  
  1105. There are four switches that you can use to pass addressing information to Gopher, overriding the information in the configuration dialog box.  They are:
  1106.  
  1107. These switches all work the same way.  For example, to use an IP address of 127.0.0.1, start Gopher like this:
  1108.  
  1109. GOPHER /MYIP=127.0.0.1
  1110.  
  1111. Other Switches
  1112.  
  1113. There are three other switches that don't fall into any particular category.
  1114.  
  1115. The /SHUTUP switch will prevent Gopher from beeping at you if there's some sort of fatal error.
  1116.  
  1117. The /NOSWAP switch will prevent Gopher from swapping itself to disk before exe cuting a DOS shell or external program.  Note that if you use this switch, you may not have enough memory for terminal sessions!  This switch is only necessary if your computer crashes when Gopher swaps itself to disk, which happens with some combinations of TSR programs and hardware.
  1118.  
  1119. Finally, the /? switch will print a summary of all of the switches on your screen.
  1120.  
  1121. The Gopher User Interface
  1122.  
  1123. Gopher uses the standard IBM character set to emulate a graphical user interface (GUI).  For this reason, Gopher runs on a wide range of  IBM PCs and compatibles, including the earliest PCs which contained a monochrome display adapter (with no
  1124.  
  1125. TABLE 3. PC Gopher IP Address Switches
  1126.  
  1127. /MYIP IP address of your microcomputer
  1128.  
  1129. /MYMASK Netmask of your microcomputer
  1130.  
  1131. /MYGW Your gateway's address
  1132.  
  1133. /MYDNS Your nameserver's address
  1134.  
  1135. Internet Gopher User's Guide 47
  1136.  
  1137. The Gopher User Interface
  1138.  
  1139. graphics support).  In other words, Gopher does not require that you install a special graphics display adapter in your computer., or that you run a windowing operating system like Microsoft Windows or IBM OS/2.
  1140.  
  1141. With a GUI, you interact with the program by responding to graphical symbols which appear on the computer screen, rather than by issuing single line commands (as with the MS-DOS operating system).  Because of its graphical user interface, Gopher is largely self-explanatory.  If you are familiar with the GUI in Microsoft Windows or the Apple Macintosh operating system, you will be able learn how to use Gopher very quickly; you may want to skip to the section entitled "Using Gopher", and come back to this section later.
  1142.  
  1143. Gopher's user interface consists of several elements:
  1144.  
  1145. Lists
  1146.  
  1147. Lists are boxes containing one or more lines of text, with a "scroll bar" along the right side of the box.  The scroll bar allows you to see items in the list that aren't displayed on the screen; to scroll the list, click on the up or down arrows at the top and bottom of the scroll bar with the mouse, or use the arrow keys.
  1148.  
  1149. There is always one item in the list that's the "currently selected" item; if you click on it, or hit the enter key, the list will perform its default action on that item.  The currently selected item is indicated by highlighting; the text and background colors of the currently selected item are colored differently than the rest of the list, or are shown in inverse video on a monochrome monitor.
  1150.  
  1151. Buttons
  1152.  
  1153. Buttons are rectangular areas of the screen which will respond to a mouse click by performing some action.
  1154.  
  1155. Some buttons have one letter of their label highlighted; you can operate these but tons by holding down the Alt key, and typing the highlighted letter.  Other buttons have all of their label highlighted; this indicates that the button is the "default" but ton, and can be operated by hitting the ENTER key.
  1156.  
  1157. PC Gopher III
  1158.  
  1159. 48 Internet Gopher User's Guide
  1160.  
  1161. Dialog Boxes
  1162.  
  1163. Dialog boxes allow Gopher to ask you for information.  For example, when you choose a search item from the list of available items, a dialog box will pop up to allow you to enter the text to search for.
  1164.  
  1165. Dialog boxes are also used to inform you of errors while Gopher is running. When one of these error dialog boxes pops up, you must click on the OK button (or hit ENTER on the keyboard) before you can continue using the program.
  1166.  
  1167. A dialog box can consist of many elements; buttons, fields to enter text, list boxes, and so on.  If you are using a keyboard rather than a mouse, you'll need to use the TAB key to select these various elements before you can use them.
  1168.  
  1169. Windows
  1170.  
  1171. Gopher uses windows to display information.  There are two main types of win dows in Gopher; the browser window, which displays lists of items for you to choose from, and the file display window, which displays the contents of a text file that you've chosen.
  1172.  
  1173. Both windows can be positioned anywhere on the screen, with the mouse or the keyboard.  To move a window with the mouse, position the cursor over the title bar of the window (the horizontal line marking the window's top edge), then press and hold the mouse button as you move the mouse.  To move a window with the key board, type Ctrl-F5, and use the arrow keys to move the window around the screen. When the window is positioned the way you want, hit the ENTER key.
  1174.  
  1175. In the upper left-hand corner of each window is a small rectangle enclosed in square brackets.  This is the window's close box; clicking with the mouse in the close box will close the window.  To close a window using the keyboard, type Alt F3.
  1176.  
  1177. Some windows can also be resized; resizeable windows have a resize box in the lower right-hand corner.  To resize the window with the mouse, position the cursor in the resize box, press the mouse button, and move the mouse.  To resize the win dow from the keyboard, type Ctrl-F5, hold the shift key down, and use the arrow keys to resize the window.  When the window is sized the way you want, hit the ENTER key.
  1178.  
  1179. Internet Gopher User's Guide 49
  1180.  
  1181. The Gopher User Interface
  1182.  
  1183. The Menu Bar
  1184.  
  1185. The very top line of the computer screen contains Gopher's menu bar with three menu labels.  The menu bar looks like this:
  1186.  
  1187. #      File     Window       Configure
  1188.  
  1189. The menu bar is the primary mechanism you use to communicate with Gopher. The menus have pull-down labels; that is, when you select a title in the menu bar, a list of specific commands are displayed underneath the menu label.
  1190.  
  1191. If one of the commands in a pull-down menu is followed by an ellipsis, choosing that command will display a dialog box, requesting further information.  If a com mand in a pull-down menu is not followed by an ellipsis, the indicated action will occur as soon as you select the item and release the mouse button or hit the ENTER key.
  1192.  
  1193. You can use either a mouse or keyboard to select commands.  To use a mouse, click on the desired menu title to display the pull-down menu (use only the left mouse button if your mouse has more than one button).  Then click the desired command. Alternatively,  you can push the mouse button down over a menu title and then con tinue to hold the mouse button down while you drag straight down from the menu title to the desired menu command, and then release the mouse button.  If you decide not to choose a command, just drag out of the boundaries of the pull-down menu and no action will be performed.
  1194.  
  1195. To choose menu commands using the keyboard, first pull down the menu.  Press the F10 key to make the menu bar active; when the menu bar is active, one menu title is highlighted.  If the menu title you want is not the one currently highlighted, use the arrow keys to move to the right or left along the menu bar, until you select the menu title you want.  Press the ENTER key to pull down the menu.  Now use the up and down arrow keys to select the command you want.  To execute the command, hit the ENTER key; to close the menu without executing any commands, hit the ESC key.
  1196.  
  1197. There is also hot-key alternative to pulling down a menu.  Hold the Alt key down while typing the letter corresponding to the first letter of the menu title you want; for example, type Alt-F to pull down the File menu (the hot key to pull-down the # menu is Alt-Spacebar).
  1198.  
  1199. PC Gopher III
  1200.  
  1201. 50 Internet Gopher User's Guide
  1202.  
  1203. Once the menu you want is pulled down, you can press the key corresponding to the highlighted letter of the desired command.
  1204.  
  1205. In addition to the four menus, there are two indicators at the left end of the menu bar.  The first indicator shows how much memory is available to the program; the second one is a clock.
  1206.  
  1207. Menu Structure
  1208.  
  1209. The individual items under the pull-down menus are organized as follows.  High lighted letters (shown here as capital letters) are used to perform the various short cuts described in the previous section and elsewhere in this manual.
  1210.  
  1211. Note that the hot-key letter associated with each command is not always the first letter of the command.  In addition, some menu commands are used often enough that they can be activated with a keyboard alternative (in other words, without hav ing to pull down any menu first).  These keys are also shown below.
  1212.  
  1213. The Preferences menu has a submenu listing user-configurable preferences; this submenu works the same way that the other menus do.
  1214.  
  1215. TABLE 4. PC Gopher Menus
  1216.  
  1217. Menu Name Item Names Action When Selected Keyboard Alternatives
  1218.  
  1219. # Alt-Spacebar
  1220.  
  1221. About PC Gopher III displays program cred its
  1222.  
  1223. Calculator pop-up calculator
  1224.  
  1225. CaLender Perpetual Calendar
  1226.  
  1227. Puzzle Challenging Puzzle
  1228.  
  1229. DOS Shell Temporarily use DOS
  1230.  
  1231. File Alt-F
  1232.  
  1233. new Gopher opens a browser for your home server Alt-G
  1234.  
  1235. Save file... saves foremost text window to a file Alt-S
  1236.  
  1237. Internet Gopher User's Guide 51
  1238.  
  1239. The Gopher User Interface
  1240.  
  1241. The Status Bar
  1242.  
  1243. Gopher's status bar is located across the bottom line of the screen.  The status bar looks like this:
  1244.  
  1245. F1 Help F10 Menus Alt-X Exit Alt-G New Gopher Alt-Z Cancel
  1246.  
  1247. The status bar contains "hot spots".  Hot spots are located wherever words occur in the status bar.  For example, "Alt-G  New Gopher" constitutes one hot spot.  Hot spots are separated from each other by more than one space.   When you click on a hot spot with a mouse, the indicated function will occur.  For example, when you
  1248.  
  1249. Open bookmark file opens the bookmark list dialog F9
  1250.  
  1251. eXit quits PC Gopher III Alt-X
  1252.  
  1253. Window Alt-W
  1254.  
  1255. Next brings the back win dow to the front F6
  1256.  
  1257. Zoom makes a window full screen sized F5
  1258.  
  1259. Move allows keyboard posi tioning of a window Ctrl-F5
  1260.  
  1261. cLose closes the front window Alt-F3
  1262.  
  1263. Configure... Alt-C
  1264.  
  1265. Application... displays application configuration dialog
  1266.  
  1267. Network... displays network con figuration dialog
  1268.  
  1269. Preferences displays submenus
  1270.  
  1271. Mouse... displays mouse configu ration dialog
  1272.  
  1273. Video Mode toggles video mode between  25&50 lines
  1274.  
  1275. TABLE 4. PC Gopher Menus
  1276.  
  1277. Menu Name Item Names Action When Selected Keyboard Alternatives
  1278.  
  1279. PC Gopher III
  1280.  
  1281. 52 Internet Gopher User's Guide
  1282.  
  1283. click on the words "Alt-G  New Gopher",  Gopher will open a new browser win dow, and when you click on the words "Alt-X  Exit", Gopher will shut down and return you to the DOS prompt.  To activate a hot spot without using a mouse, hold down the Alt key, and type the letter indicated in the status bar.
  1284.  
  1285. Using Gopher
  1286.  
  1287. To start exploring gopherspace, choose "New Gopher" from the File menu, or click on the words "Alt-G  New Gopher" on the status line (if you'd rather use the key board, type Alt-G).  Gopher will attempt to connect to the first server that you spec ified in the configuration dialog box.  If the attempt is successful, Gopher will retrieve a list of the items that the server knows about.  The list will look something like this:
  1288.  
  1289. <F>About Internet Gopher
  1290.  
  1291. <B>GIF picture of Joey Ramone
  1292.  
  1293. <D>Really Interesting Administrative Information
  1294.  
  1295. <P>U of MN Phone Book
  1296.  
  1297. <S>Search Pyrotechnics Recipes
  1298.  
  1299. <T>Card Catalog via Telnet
  1300.  
  1301. Any item on the list can be selected either by moving the selection bar with the arrow keys and hitting ENTER, or by double-clicking with the mouse.
  1302.  
  1303. Gopher Item Types
  1304.  
  1305. At the beginning of each line in the item list is a character enclosed in brackets; this character tells you what the item is.  Gopher knows about the following item types:
  1306.  
  1307. TABLE 5. PC Gopher Item Types
  1308.  
  1309. Character Type Name Action When Selected
  1310.  
  1311. <F> Text File retrieves and displays the file
  1312.  
  1313. <B> Binary File retrieves the file
  1314.  
  1315. <D> Directory shows you more items
  1316.  
  1317. <S> Search Item prompts for text to search for
  1318.  
  1319. <P> Phone book prompts for person to look up
  1320.  
  1321. Internet Gopher User's Guide 53
  1322.  
  1323. Using Gopher
  1324.  
  1325. Text Files
  1326.  
  1327. In the above example, line one refers to a file called "About Internet Gopher".  To see the contents of this file, select the item with either the mouse or the keyboard. Gopher will attempt to retrieve the file, and display it in a separate window.  If the file is too large for Gopher to fit into available memory, it will put up a dialog box requesting that you specify a filename and directory to save the file in. You can then open the file with your favorite word processor to see the contents.
  1328.  
  1329. You may also choose to save the information that you get back as a file, even if it is small enough for Gopher to display immediately in a window.  Just choose "Save File..." from the File menu, and enter the filename and directory that you want to save the file in.
  1330.  
  1331. <T> Terminal Session connects you to a non-Gopher service
  1332.  
  1333. <???> Error none
  1334.  
  1335. TABLE 5. PC Gopher Item Types
  1336.  
  1337. Character Type Name Action When Selected
  1338.  
  1339. FIGURE 7. PC Gopher Text Files
  1340.  
  1341. PC Gopher III
  1342.  
  1343. 54 Internet Gopher User's Guide
  1344.  
  1345. Binary Files
  1346.  
  1347. The second item in the list above is a binary file, a GIF picture of one of our favor ite rock stars.  Choosing this item will pop up a dialog box, prompting you for a filename to save the picture in; once you've entered a filename and chosen the "OK" button, Gopher will retrieve the file.   Instead of displaying the file in a window, Gopher will show you a progress indicator so that you can tell when the file has been retrieved.  To view the file, you'll have to quit Gopher and run a separate pro gram capable of displaying GIF pictures.
  1348.  
  1349. Directories
  1350.  
  1351. The third item in our example listing is a directory.  Directories are like folders or drawers full of other items.  When Gopher first connects to the gopher server that you specify as your starting point, the list that you get back shows the contents of the main or "root" directory of that server.
  1352.  
  1353. To see the contents of a directory, select it from the list using either the mouse or the keyboard. Gopher will request a list of the contents of the subdirectory that you selected, and will present this list in the browser window.
  1354.  
  1355. If you anticipate returning to a particular directory on a particular server, you can use the Bookmark List to save that position in gopherspace.  To save a bookmark, first navigate to the place that you want to remember, and the choose Open Book mark File from the File menu.  Once the bookmark list opens up, click on the Add button; you will be prompted for a name for the bookmark.  To return to the book marked position later, just open the bookmark list and choose the bookmark you wish to return to.
  1356.  
  1357. Phone Book Items
  1358.  
  1359. The fourth item in the example is a Phone Book item.  Phone book items are point ers to databases that contain information about people's phone numbers, office loca tions, e-mail addresses, and so on; these databases are called CSO or PH servers. When you select a phone book item, a dialog box will pop up, and Gopher will ask the database server for a list of items that you can ask about.  Once the list of these items is built, you can look a person up by typing her name into the dialog box and choosing the "Lookup" button.  Any matching items will be displayed in a separate window, and can be saved to disk using the File menu's Save File command.
  1360.  
  1361. Internet Gopher User's Guide 55
  1362.  
  1363. Using Gopher
  1364.  
  1365. If you want to enter more information to narrow the search, you can choose the "More Choices..." button, and you'll be presented with a larger dialog box, contain ing a list of fields that you can use in a query.  You build up a query by selecting an item from the list, and typing in the search key next to the item name when it pops up on the screen.  You can build queries of up to five items; if you want to change the query, selecting the Clear button will clear all of the items you've chosen.  Once the query is set up, select the Lookup button, and the query will be sent to the server.
  1366.  
  1367. Search Items
  1368.  
  1369. Next in the listing is a Search item for an interesting set of recipes.  A search item is a computer that can search various gopher servers for files containing text that you specify.  If you select a search item, a dialog box will pop up for you to enter your search text in.   To start the search, click on the "Search" button, or just hit the ENTER key.
  1370.  
  1371. The search item returns a list of files that it knows about that contain ALL of the text that you enter in the input box.  If you entered the word "salmon", the search item would return a list of all of the files containing that word.  If you entered
  1372.  
  1373. FIGURE 8. PC Gopher Phone Book Search
  1374.  
  1375. PC Gopher III
  1376.  
  1377. 56 Internet Gopher User's Guide
  1378.  
  1379. "salmon spinach", the search item will return a list of files that contain both the word "salmon" and the word "spinach"; it would NOT return the names of files that had only one of the two words.
  1380.  
  1381. Search Items and Logical Operators
  1382.  
  1383. Logical operators are special words that allow you to set up specific search condi tions.  The logical operators "and", "or", and "not" are supported by many search items.  You can use one or more of these operators to narrow the field of your search.
  1384.  
  1385. There are three different types of search items in gopherspace.  The first type assumes an implicit "and" between words, and will let you use logical operators to change this behavior.  The second assumes and implicit "or" between words, and will also allow the use of logical operators to alter the default.  The third assumes "or", and ignores logical operators.  Unfortunately, the only way to find out which type of search item you're dealing with is to experiment (unless it is explicitly labeled as one of these three types).
  1386.  
  1387. For example, assume you've found a search item that assumes "and" between words, and also understands logical operators.  Suppose you want to find files that
  1388.  
  1389. FIGURE 9. PC Gopher Searches
  1390.  
  1391. Internet Gopher User's Guide 57
  1392.  
  1393. Using Gopher
  1394.  
  1395. contain the word "salmon" or the word "spinach", but not both.  You can do this by entering "salmon or spinach" in the input box.  You can also use the word "and" to explicitly indicate that the files you're searching for must contain both words; this allows you to set up specific search conditions by using multiple logical operators. Logical operators are evaluated in right-to-left order; the search pattern "spinach and salmon or broccoli" would result in a list of files that contained the word spin ach and the word salmon, or just the word broccoli.
  1396.  
  1397. To exclude words from the search pattern, use "not".  The search phrase "Minnesota not snow" would produce a list of files containing at least one instance of the word "Minnesota", and no instances of the word "snow".
  1398.  
  1399. Terminal Session Items
  1400.  
  1401. The last item in the example listing is a Terminal Session item.  A terminal session item is a way to allow you access to information services that expect to communi cate with a terminal rather than a program like Gopher.  When you select a terminal session item, Gopher will execute the terminal emulator if your choice, passing the name, address, and/or port number required to connect to the terminal-based ser vice.  See the section entitled "Configuring Gopher" for information about how to configure Gopher to access these services.
  1402.  
  1403. Multiple Concurrent Queries
  1404.  
  1405. Gopher is capable of handling more than one query at a time, although it is limited to no more than three simultaneous queries.  This allows you to continue to navi gate through gopherspace while you're receiving a large binary file, and even to fetch other files at the same time.
  1406.  
  1407. Query Progress Indicators
  1408.  
  1409. The browser window and the text display window both have query progress indica tors in the lower left-hand corner of their window frames.  This indicator will tell you exactly what the status of the query is; usually, you'll see either "receiving", meaning that Gopher is receiving  a response to your query, "waiting", meaning that Gopher is waiting for the server to continue the transaction, or "idle", meaning that the query is complete and that Gopher has closed the connection with the server.
  1410.  
  1411. PC Gopher III
  1412.  
  1413. 58 Internet Gopher User's Guide
  1414.  
  1415. The progress indicator can be helpful in diagnosing problems with slow or sick servers, misconfigured or broken networks, or (heaven forbid) PC Gopher itself.
  1416.  
  1417. Canceling a Query
  1418.  
  1419. Any query can be canceled at any time.  If you want to cancel a query and throw away any directory listing or text that you've received so far, you can close the win dow associated with the query.  To cancel a query without closing its window, type Alt-Z or choose the "Alt-Z Cancel Query" hotspot in the status line.
  1420.  
  1421. Help!
  1422.  
  1423. If you run into difficulties installing or using Gopher, or have bug reports, sugges tions, or general comments, you can send e-mail to us at:
  1424.  
  1425. gopher@boombox.micro.umn.edu
  1426.  
  1427. Although we greatly prefer e-mail, you can also contact us via paper mail at:
  1428.  
  1429. The Gopher Development Team
  1430.  
  1431. Computer and Information Services
  1432.  
  1433. University of Minnesota
  1434.  
  1435. Room 190 Shepherd Labs
  1436.  
  1437. 100 Union St. SE
  1438.  
  1439. Minneapolis, MN 55455
  1440.  
  1441. U.S.A.
  1442.  
  1443. In all of your correspondence pertaining to PC Gopher III, please indicate:
  1444.  
  1445. * your PC Gopher III version number
  1446.  
  1447. * your operating system and version number (e.g., DOS 5.0)
  1448.  
  1449. * your computer brand and model
  1450.  
  1451. * your ethernet card brand and model (if applicable)
  1452.  
  1453. Internet Gopher User's Guide 59
  1454.  
  1455. Acknowledgments
  1456.  
  1457. Acknowledgments
  1458.  
  1459. Thanks to Borland International of  Scotts Valley, California, for Borland Pascal version 7.0, and for TurboVision.
  1460.  
  1461. Thanks to Clarkson College of Potsdam, New York, for the use of the Clarkson Packet Drivers.
  1462.  
  1463. Thanks to Ralf Brown for allowing us to use his Turbo Pascal swapping unit, Spawno.
  1464.  
  1465. Thanks to George Gonzalez and Earl Schleske for their tireless maintenance of the TCP/IP driver used in PC Gopher III.
  1466.  
  1467. Finally, thanks to Shih-Pau Yen for having a lot of faith, Farhad Anklesaria and Mark McCahill for having a lot of nerve, and all of the beta-testers for having a lot of patience.
  1468.  
  1469. PC Gopher III
  1470.  
  1471. 60 Internet Gopher User's Guide Internet Gopher User's Guide 61
  1472.  
  1473. CHAPTER 5 The UNIX Gopher Client
  1474.  
  1475. This chapter describes how to use the UNIX Gopher client.
  1476.  
  1477. Overview
  1478.  
  1479. Internet Gopher for Unix is distributed as C source code. You will need to compile this source code into binary executables for your system. To make it generally available to the rest of the users on the system, you should install the software into a central directory.
  1480.  
  1481. Requirements
  1482.  
  1483. You will need a working gopher client, to see if it's been installed just type:
  1484.  
  1485. gopher
  1486.  
  1487. If you get an error message, then you will have to install the UNIX Gopher client, see "Installing the Unix Gopher Distribution" on page 69, or you'll have to use one of the public gopher systems listed in the Common Questions chapter.
  1488.  
  1489. The UNIX Gopher Client
  1490.  
  1491. 62 Internet Gopher User's Guide
  1492.  
  1493. Starting the UNIX Gopher Client
  1494.  
  1495. To start the UNIX Gopher client, simply type gopher. You'll be presented with a screen that looks like this:
  1496.  
  1497. FIGURE 10. Unix Gopher Client-Top Level
  1498.  
  1499. This is what you would see if you used gopher at the University of Minnesota, other systems may have localized and customized the client for their own sites.
  1500.  
  1501. Navigating Gopherspace
  1502.  
  1503. Once you've started the client you can move around Gopherspace using a few dif fernt keys, the most common ones are the cursor keys, the u key, and the RETURN key.
  1504.  
  1505. The cursor keys control the arrow pointer; pressing the cursor down key moves the arrow to the next item, pressing the cursor up key moves the arrow to the previous item.
  1506.  
  1507. Pressing the RETURN key or right arrow key displays the item that the arrow is pointed at.
  1508.  
  1509. Internet Gopher User's Guide 63
  1510.  
  1511. Special Items
  1512.  
  1513. Each item is tagged with special characters to make it easy to predict what each item is. Items ending with a slash (/) are Gopher directories, selecting one of these items will cause a new directory to be displayed.
  1514.  
  1515. An item that ends with a period (.) are text files. Pressing RETURN on these items will view the file. For instance pressing RETURN on the file "About Gopher" will retrieve the file and result in a screen that looks like the following:
  1516.  
  1517. FIGURE 11. Unix Gopher Client-Text File
  1518.  
  1519. Press the `q' key when you're finished viewing a file to return to the directory
  1520.  
  1521. Once you've finished with viewing the directory you can, if you wish, return to the previous directory by pressing the `u' key or the left arrow key. This moves you up to the previous directory.
  1522.  
  1523. These simple keys will move you through Gopherspace quickly and easily.
  1524.  
  1525. Special Items
  1526.  
  1527. This section details how to use the Unix Gopher Client to access services other than text files and directories.
  1528.  
  1529. The UNIX Gopher Client
  1530.  
  1531. 64 Internet Gopher User's Guide
  1532.  
  1533. Index Searches
  1534.  
  1535. Items with a <?> tag at the end of the name are searchable indices. When you select one of these items you will get to type in search words. These words will determine the items in the resulting directory listing. For instance a search on "Search Reci pes" with word salmon would result in a listing of recipes related to salmon.
  1536.  
  1537. Phone Book Servers
  1538.  
  1539. Phone Book Servers show up with the tag <CSO> at the end of the name. Selecting one of these items results in a screen that looks like this:
  1540.  
  1541. FIGURE 12. Unix Gopher Client-Phone Book Search
  1542.  
  1543. You can fill in the fields in any way you wish. In this example we want to see if there are any people with the name "lindner" at the National Institues of Health.
  1544.  
  1545. Telnet/tn3270 Servers
  1546.  
  1547. Gopher can connect to telnet sites such as Library Catalogs rather easily, if you see an item tagged with <TEL> or <3270> you'll be presented with a screen similar to the following
  1548.  
  1549. Internet Gopher User's Guide 65
  1550.  
  1551. Advanced Navigation Features
  1552.  
  1553. FIGURE 13. Unix Gopher Client-Telnet/tn3270 services
  1554.  
  1555. In this example we're connecting to the "James Cook University" library system. If there's a special login required Gopher will tell us. In this case it's "opac" If we press RETURN, Gopher will connect us to the host jculib.jcu.edu.au and let us login.
  1556.  
  1557. Advanced Navigation Features
  1558.  
  1559. There are many other keys that you can use with the UNIX client. Instead of the cursor keys you can use the the equivilant cursor control keys for vi or emacs. In vi the keys are h,j,k, and l. In emacs the keys are ^B, ^N, ^P, and ^F.
  1560.  
  1561. The following table summarizes the other keys:
  1562.  
  1563. TABLE 6. UNIX Gopher Client-Advanced Navigation Keys
  1564.  
  1565. Key Action
  1566.  
  1567. >, +, SPACE Move to the next directory page.
  1568.  
  1569. <, -, b Move to the previous directory page.
  1570.  
  1571. 0-9 View a specific item.
  1572.  
  1573. m Go back to the first "main" directory screen.
  1574.  
  1575. The UNIX Gopher Client
  1576.  
  1577. 66 Internet Gopher User's Guide
  1578.  
  1579. Bookmarks
  1580.  
  1581. If you formulate a search or find a folder you would like to come back to later, you can set a bookmark for the item. Then you can easily find the item later in your per sonal bookmark directory.
  1582.  
  1583. Move the arrow to the interesting item and press the `a' key to add a bookmark. You will see a screen like this:
  1584.  
  1585. FIGURE 14. Unix Gopher Client-Adding a Bookmark
  1586.  
  1587. Type in a meaningful name. Later on, when you wish to access this item again, press the `v' key to view your personal bookmark list. You'll get a directory listing screen that contains all of your bookmarks. If you wish to delete a bookmark entry you can press the `d' key when the arrow is pointed to the item.
  1588.  
  1589. Saving and Downloading
  1590.  
  1591. If you want a permanent copy of an item in Gopherspace, not just a reference, which a bookmark is, you should press the `s' key. This will save the current item into a filename on your system.
  1592.  
  1593. Internet Gopher User's Guide 67
  1594.  
  1595. Saving and Downloading
  1596.  
  1597. If you are connected to a Unix machine through a modem using terminal emulation software you can press the `D' key to download the item using either of several file transfer protocols such as Zmodem, Ymodem, Xmodem, and Kermit.
  1598.  
  1599. The UNIX Gopher Client
  1600.  
  1601. 68 Internet Gopher User's Guide Internet Gopher User's Guide 69
  1602.  
  1603. CHAPTER 6 Installing the Unix Gopher Distribution
  1604.  
  1605. This chapter describes how to compile and install the Internet Gopher for Unix Dis tribution. The two main parts of this distribution are the Gopher Server, gopherd and the Gopher client, gopher.
  1606.  
  1607. Overview
  1608.  
  1609. Internet Gopher for Unix is distributed as C source code. You will need to compile this source code into binary executables for your system.
  1610.  
  1611. To use the gopher client or server you will need to compile the code using a C com piler. To make it generally available to the rest of the users on the system, you should install the software into a central directory.
  1612.  
  1613. Requirements
  1614.  
  1615. You should have a copy of a compressed tar file containing the source. You should consult "Getting the Software" on page 15 if you don't have this file.
  1616.  
  1617. Installing the Unix Gopher Distribution
  1618.  
  1619. 70 Internet Gopher User's Guide
  1620.  
  1621. You will need a Unix machine with a C compiler and development environment to compile the software. The source code requires about one megabyte of disk space when uncompressed. The source takes up about two megabytes of disk space when compiled.
  1622.  
  1623. Your UNIX machine will need to be connected to a TCP-IP network for the soft ware to function properly.
  1624.  
  1625. Some experience with Unix software installation is recommended. A knowledge of C programming and Makefiles will be useful.
  1626.  
  1627. If you want to index files with your server you will need to get some additional software. There are two file indexing kits supported by the Internet Gopher server, NeXT indices and WAIS indices.
  1628.  
  1629. NeXT indexing comes bundled with the NeXTstep operating system. It is the basis for many NeXT applications, including the Webster dictionary and the Digital Bookshelf.
  1630.  
  1631. WAIS indexing is a freely available indexing kit for many Unix machines. It includes an index generator called waisindex, a database server called waisserver, and client programs for Xwindow, full-screen and command line searching. WAIS is an acronym for Wide Area Information Server.
  1632.  
  1633.  If you are compiling a server on a NeXT machine you will want to consult "NeXT Indexing" on page 71 before continuing. Follow the instructions in "WAIS Index ing" on page 71 if you want to use WAIS indexing with your server. You may skip these sections if you don't want indexing or don't want to bother with it just yet.
  1634.  
  1635. Compatibility
  1636.  
  1637. The Gopher source should compile on most UNIX systems. Here are a few that we know it has worked on:
  1638.  
  1639. * Suns running SunOS 4.1.x
  1640.  
  1641. * RS/6000s running AIX 3.2
  1642.  
  1643. * NeXTs running NeXTstep
  1644.  
  1645. * SCO ODT systems
  1646.  
  1647. Internet Gopher User's Guide 71
  1648.  
  1649. NeXT Indexing
  1650.  
  1651. * Apples running A/UX
  1652.  
  1653. * DECstations running Ultrix
  1654.  
  1655. * Silicon Graphics Iris' running Irix
  1656.  
  1657. Don't worry if your system isn't listed above, the code has been written with com patibility in mind. Most systems should work just fine.
  1658.  
  1659. NeXT Indexing
  1660.  
  1661. For NeXT indexing you will need the file NeXTtext.tar.Z. Use anonymous ftp to boombox.micro.umn.edu and get the file
  1662.  
  1663. /pub/gopher/Unix/NeXTtext.tar.Z
  1664.  
  1665.  The files libbtree.a and libtext.a are in this compressed tar file, along with the directories btree and text.
  1666.  
  1667. The files libbtree.a and libtext.a need to be installed in the directory
  1668.  
  1669. /usr/local/lib
  1670.  
  1671.  The btree and text directories need to be installed in the directory
  1672.  
  1673. /usr/local/include.
  1674.  
  1675. Type the following commands as root to install the NeXT indexing libraries.
  1676.  
  1677. 1. uncompress NeXTtext.tar.Z
  1678.  
  1679. 2. tar xvf NeXTtext.tar.Z
  1680.  
  1681. 3. mv libtext.a libbtree.a /usr/local/lib
  1682.  
  1683. 4. ranlib /usr/local/lib/libbtree.a /usr/local/lib/libtext.a
  1684.  
  1685. 5. cp -r text btree /usr/local/include
  1686.  
  1687. WAIS Indexing
  1688.  
  1689. For WAIS indexing you will need to get the freely available WAIS software. There are two different versions of WAIS software: the software from Thinking Machines Inc. and the modified software from Don Gilbert at the University of Indiana.
  1690.  
  1691. Installing the Unix Gopher Distribution
  1692.  
  1693. 72 Internet Gopher User's Guide
  1694.  
  1695. The Don Gilbert Version supports boolean searches and phrase matching. The nor mal WAIS software does not support these features.
  1696.  
  1697. To retrieve the Thinking Machines Inc. version of WAIS, use anonymous ftp to the host ftp.think.com and retrieve the file /wais/wais-8-b5.1.tar.Z
  1698.  
  1699. To retrieve Don Gilbert's version of WAIS use anonymous ftp to the host ftp.bio.indiana.edu and retrieve the file /util/iubio-wais-8b5.tar.Z
  1700.  
  1701. The source code to the WAIS system is in this compressed tar file. You should then extract the archive and compile the software. The installation instructions are in the file INSTALLATION inside the wais doc directory.
  1702.  
  1703. Note that you do not need to make the Xwindow or emacs client. Many systems will not compile these cleanly.
  1704.  
  1705. When you are finished you will have a bin directory that contains the programs: waisindex, waisserver, and waissearch. These binaries allow you to create, serve and search indices respectively.
  1706.  
  1707. The bin directory contains the libraries necessary for compiling the gopher server. These are inv.a, libftw.a, client.a, and wais.a. The ui directory contains one module necessary for the WAIS gateway, source.o.
  1708.  
  1709. Go to your Gopher source code directory and type the following commands to let the Gopher code know you want to use WAIS. Substitute the WAIS source code directory for waisdir in the following commands.
  1710.  
  1711. ln -s /waisdir/ir .
  1712.  
  1713. ln -s /waisdir/bin .
  1714.  
  1715. ln -s /waisdir/ui .
  1716.  
  1717. Preparing to Compile the Distribution
  1718.  
  1719. There are some options you will want to check before compiling the Gopher server, some of these options are for compatibility with various platforms, others are for special features.
  1720.  
  1721. Internet Gopher User's Guide 73
  1722.  
  1723. Preparing to Compile the Distribution
  1724.  
  1725. Two files control the compilation process: Makefile.config and conf.h. You will find both of them in the top level of the Gopher source directory. Most sites will not need to make major changes to these files, in fact you might just want to try typing "make" and see if it works for you.
  1726.  
  1727. There are comments in these files that you will want to read before you compile. The following tables document some of the more popular ones.
  1728.  
  1729. TABLE 7. Configuration Parameters in Makefile.config
  1730.  
  1731. Parameter Default What it is
  1732.  
  1733. CC cc Your favorite C compiler
  1734.  
  1735. OPT -O Use -O for faster code, -g for debuigging
  1736.  
  1737. RANLIB ranlib Use touch if you don't have the ranlib com mand.
  1738.  
  1739. PREFIX /usr/local The base directory where the software will be installed. Many other parameters use this value.
  1740.  
  1741. CLIENTDIR $(PREFIX))/bin Where the client "gopher" is installed.
  1742.  
  1743. CLIENTLIB $(PREFIX)/lib Where the help filesforthe client are installed.
  1744.  
  1745. SERVERDIR $(PREFIX)/etc Where the server files are installed.
  1746.  
  1747. SERVEROPTS Optional server features. See below.
  1748.  
  1749. DOMAIN .micro.umn.edu Set this to the portion of your hostname that the "hostname" command doesn't return.
  1750.  
  1751. SERVERDATA /home/gopher The defauilt location of gohper data for the gopher server.
  1752.  
  1753. SERVERPORT 70 The default port for the Gopher server.
  1754.  
  1755. TABLE 8. Configuration Parameters in conf.h
  1756.  
  1757. Parameter Default What it does
  1758.  
  1759. CLIENT1_HOST gopher.tc.umn.edu The default host to connect to.
  1760.  
  1761. CLIENT2_HOST gopher2.tc.umn.edu The alternate host to connect to.
  1762.  
  1763. CLIENT1_PORT 70 The default port for the first host.
  1764.  
  1765. CLIENT2_PORT 70 The default port for the alternate host.
  1766.  
  1767. PAGER_COMMAND more -d %s Command used to display text.
  1768.  
  1769. Installing the Unix Gopher Distribution
  1770.  
  1771. 74 Internet Gopher User's Guide
  1772.  
  1773. Other Optional Features
  1774.  
  1775. Many people have submitted nifty options for the server, follow the instructions in the appropriate section if you wish to implement these features.
  1776.  
  1777. Load Restriction
  1778.  
  1779. Add -DLOADRESTRICT to the SERVEROPTS variable in Makefile.config if you want to restrict access to the Gopher server at a certain load average. You will also need to add -lkvm to SERVERLIBS in Makefile.config.
  1780.  
  1781. This has only been tested underneath SunOS 4.1.1
  1782.  
  1783. Biological Databases
  1784.  
  1785. Add -DBIO to SERVEROPTS if you're using the biology portion of Don Gilbert's modified wais8b5 that supports boolean and phrase searching. PLEASE NOTE: the -DBIO option is NOT needed nor recommended for use of the boolean and phrase searching portion of this modified wais, just the symbol searching. But, you must compile wais and gopher with the same option setting (-DBIO or NOT). Otherwise your server will core dump when doing searches.
  1786.  
  1787. PLAY_COMMAND Commaand used to play sounds.
  1788.  
  1789. MAIL_COMMAND mail Command used to mail files.
  1790.  
  1791. TELNET_COMMAND telnet Command used to connect to other hosts using telnet protocol.
  1792.  
  1793. TN3270_COMMAND tn3270 Command used to connect to IBM mainframe hosts.
  1794.  
  1795. IMAGE_COMMAND xloadimage -fork %s Command used to view image files.
  1796.  
  1797. TABLE 8. Configuration Parameters in conf.h
  1798.  
  1799. Parameter Default What it does
  1800.  
  1801. Internet Gopher User's Guide 75
  1802.  
  1803. Special Modifications for Compatibility
  1804.  
  1805. DL Database Support
  1806.  
  1807. Add -DDL and define DLPATH and DLOBJS if you want to include support for Tim Cook's 'dl' databases You will also have to have a working copy the program with source code in the DLPATH directory. The files getdesc.o and enddesc.o must be there.
  1808.  
  1809.  Source for dl can be gotten from:
  1810.  
  1811. admin.viccol.edu.au
  1812.  
  1813. as
  1814.  
  1815. /pub/dl/describe-1.8.tar.Z or higher...
  1816.  
  1817. Special Modifications for Compatibility
  1818.  
  1819. The Gopher distribution tries to automatically make up for operating system depen dencies, however sometimes you have to tweak things for certain operating sys tems. Follow the appropriate steps if your system is listed below:
  1820.  
  1821. UMAX Systems
  1822.  
  1823. Uncomment the line that contains UMAXLIBS in Makefile.config
  1824.  
  1825. Dynix PTX Systems
  1826.  
  1827. Uncomment the line that contains PTXLIBS in Makefile.config.
  1828.  
  1829. Dynix systems in the BSD universe
  1830.  
  1831. Uncomment the line that contains SEQLIBS in Makefile.config.
  1832.  
  1833. SCO Open Desktop Systems
  1834.  
  1835. Uncomment out the line that contains SCOLIBS in Makefile.config.
  1836.  
  1837. System VR4 Systems
  1838.  
  1839. Uncomment out the line that contains SVR4LIBS in Makefile.config.
  1840.  
  1841. Installing the Unix Gopher Distribution
  1842.  
  1843. 76 Internet Gopher User's Guide
  1844.  
  1845. DEC Ultrix Systems
  1846.  
  1847. Change the line that contains -lcurses to have -lcursesX instead.
  1848.  
  1849. Other Systems
  1850.  
  1851. There is a line in the file Makefile.config for compatibility definitions. Look for the line with COMPAT= at the beginning. If you have problems linking due to unre solved symbols you'll want to edit this line. Consult the following table for the appropriate definitions you should add if you have problems.
  1852.  
  1853. You should then type make clean and restart the compilation process.
  1854.  
  1855. Compiling and Installing the Distribution
  1856.  
  1857. You should now be ready to compile the distribution.
  1858.  
  1859. If you want to make just the client type
  1860.  
  1861. make client
  1862.  
  1863. If you want to make just the server type
  1864.  
  1865. make server
  1866.  
  1867. If you want to make everything just type
  1868.  
  1869. make
  1870.  
  1871. TABLE 9. Compatibility Definitions
  1872.  
  1873. Unknown symbol What you should add to COMPAT=
  1874.  
  1875. strstr -DNOSTRSTR
  1876.  
  1877. tempnam -DNO_TEMPNAM
  1878.  
  1879. strdup -DNO_STRDUP
  1880.  
  1881. bzero or bcopy -DNO_BZERO
  1882.  
  1883. getwd -DNO_GETWD
  1884.  
  1885. tzset -DNO_TZSET
  1886.  
  1887. strcasecmp -DNO_STRCASECMP
  1888.  
  1889. Internet Gopher User's Guide 77
  1890.  
  1891. Testing
  1892.  
  1893. If you want to install everything in the directories specified in Makefile.config type:
  1894.  
  1895. make install
  1896.  
  1897. If you want to install just the client type:
  1898.  
  1899. (cd gopher; make install)
  1900.  
  1901. If you want to install just the server type:
  1902.  
  1903. (cd gopherd; make install)
  1904.  
  1905. Testing
  1906.  
  1907. ....
  1908.  
  1909. Installing the Unix Gopher Distribution
  1910.  
  1911. 78 Internet Gopher User's Guide Internet Gopher User's Guide 79
  1912.  
  1913. CHAPTER 7 Configuring the Unix Server
  1914.  
  1915. This chapter will show you how to configure and run the UNIX gopherd server.
  1916.  
  1917. Overview
  1918.  
  1919. The UNIX server has many features. This chapter will show you how to configure your server and control how a gopher client views the data contained within the server. In this chapter "gopher server" refers to the Unix gopherd program.
  1920.  
  1921. Requirements
  1922.  
  1923. You should have a working copy of gopherd installed. If you don't refer to "Install ing the Unix Gopher Distribution" on page 69 for more information about compil ing and installing the software. You will need a Unix machine with a TCP-IP network connection to use the Unix Gopher Server. You will also most-likely need to have a connection to a machine that is running a Domain Name Server (DNS).
  1924.  
  1925. Configuring the Unix Server
  1926.  
  1927. 80 Internet Gopher User's Guide
  1928.  
  1929. What is gopherd?
  1930.  
  1931. The gopherd server is a program that accepts requests from gopher clients and "serves" the information to them. It uses a number of methods to supply this infor mation. Most of this information comes from a portion of a file system called the gopher-data directory.
  1932.  
  1933. Gopherd can also "gateway" to other network services such as ftp and WAIS. The gopher clients do not need to understand these protocols, the gopher server does it for them.
  1934.  
  1935. First Steps
  1936.  
  1937. The first thing you will want to do is create your "gopher-data" directory. This directory will contain all of the information that gopher clients will see. In all the examples below the term gopher-data will refer to this directory. Whenever you see this reference fill in your local gopher data directory.
  1938.  
  1939. So, let's create this directory. Make sure there's sufficent space on the filesystem and use the mkdir command to create the directory. You will probably have to do this as root. Here is an example of creating the gopher-data directory:
  1940.  
  1941. mudhoney# mkdir /home/mudhoney/gopher-data
  1942.  
  1943. Now we can add data for the clients to this directory.
  1944.  
  1945. Adding Information to the Server
  1946.  
  1947. The gopher server gets its information from the files and directories in gopher-data. By making changes in this directory tree, you will change what the gopher clients see.
  1948.  
  1949. Internet Gopher User's Guide 81
  1950.  
  1951. Adding Information to the Server
  1952.  
  1953. Default Translations 1
  1954.  
  1955. * Directories inside of gopher-data are served as Gopher Directories.
  1956.  
  1957. * Text files are represented as Gopher Text items.
  1958.  
  1959. * ulaw sound files (as used by Sun and NeXT workstations) are represented as Gopher audio/basic files.
  1960.  
  1961. * GIF files are represented as Gopher image/gif (I) files.
  1962.  
  1963. * All files/directories that start with a dot (i.e. .foo) or are named etc, usr, bin, dev, or core are ignored by the server.
  1964.  
  1965. * The title of each object presented to the client is the filename of the file/direc tory.
  1966.  
  1967. * Files compressed with "compress"and files compressed with GNU zip (gzip) files are supported. They will be sent to the client uncompressed.
  1968.  
  1969. * Mail spool files are represented as directories. When the mail-spool file is viewed, each mail message is represented as a Gopher Text item.
  1970.  
  1971. * Executable shell scripts are represented as a Gopher Text item. The output of the script is sent when the client requests to view the item. The shell script must start with the magic three characters #!/
  1972.  
  1973. * Files that end with .src are assumed to be WAIS database files generated by the waisindex program.
  1974.  
  1975. * The server sorts directories it sends out alphabetically. The server does distin guish between upper and lower case when sorting.
  1976.  
  1977. Links to Other Servers
  1978.  
  1979. You can add data to your server by creating what are known as Links in the gopher data directory tree. Links allow you to connect Goher servers together.
  1980.  
  1981.  The ability to make links to other hosts is how Gopher distributes itself among multiple hosts. To make a link create a file starting with a period that contains the data needed by the server. By default all files in the gopher data directory starting with a period are taken to be link files. A link file can contain multiple links, just separate the different links with a . To define a link you need to put five lines in a link file that define the needed characteristics for the document. Here is an example of a link.
  1982.  
  1983. 1.  The defaults mentioned in this section apply to the default gopherd.conf file that comes with the gopher server. If you change this file then the default behavior will be different.
  1984.  
  1985. Configuring the Unix Server
  1986.  
  1987. 82 Internet Gopher User's Guide
  1988.  
  1989. Numb=1 Name=National Weather Service Forecasts Type=1 Port=70 Path=1/Weather Host=ashpool.micro.umn.edu
  1990.  
  1991. The Name= line is what the user will see when cruising through the database. In this case the name is "National Weather Service Forecasts".
  1992.  
  1993. The "Type=" defines what kind of document this object is. The following is a list of all the defined types:
  1994.  
  1995.  0 -- Text File
  1996.  
  1997.  1 -- Directory
  1998.  
  1999.  2 -- CSO name server
  2000.  
  2001.  4 -- Mac HQX file.
  2002.  
  2003.  7 -- Full Text Index
  2004.  
  2005.  8 -- Telnet Session
  2006.  
  2007.  9 -- Binary File
  2008.  
  2009.  s -- Sound
  2010.  
  2011.  The "Path=" line contains the selector string that the client will use to retrieve the actual document. The "Numb=" line specifies that this entry should be presented first in the directory list (instead of being alphabetized). The "Numb=" line is optional.
  2012.  
  2013. The "Port=" and "Host=" lines specify a fully qualified domain name (FQDN) and a port respectively. You may substitute a plus '+' for these two parameters if you wish. The server will insert the current hostname and the current port when it sees a plus in either of these two fields.
  2014.  
  2015. An easy way to retrieve links is to use the Curses Gopher Client. By pressing '=' You can get information suitable for inclusion in a Link file.
  2016.  
  2017. Internet Gopher User's Guide 83
  2018.  
  2019. Adding Information to the Server
  2020.  
  2021. A Simple Example of Adding Information
  2022.  
  2023. Okay, let's add some information to the gopher server. The following commands will add the Gopher directories "News", "Fun and Games" and "Recipes" to our server.
  2024.  
  2025. mudhoney# cd gopher-data mudhoney# mkdir News mudhoney# mkdir "Fun and Games" mudhoney# mkdir "Recipes"
  2026.  
  2027. Now that the directory structure is created we can add some text files. Let's say that we have a file called "about" that describes the server and two recipes for clam chowder in two files called "chowder1" and "chowder2." Also assume that these files are in the directory /tmp. These steps will put the files in their proper place.
  2028.  
  2029. mudhoney# cd gopher-data mudhoney# cp /tmp/about "About This Server" mudhoney# cp /tmp/chowder1 "Recipes/Yummy Clam Chowder" mudhoney# cp /tmp/chowder2 "Recipes/Icky Clam Chowder"
  2030.  
  2031. Let's now add a link to another server. The weather forecasts link in the previous section is a real, live link. Put the link information into a file in the gopher-data directory. Your server will now have the following entries in the top-level:
  2032.  
  2033. National Weather Service Forecasts About This Server Fun and Games News Recipes
  2034.  
  2035. Additonally you will have the following files in the Recipes directory
  2036.  
  2037. Yummy Clam Chowder Icky Clam Chowder
  2038.  
  2039. Configuring the Unix Server
  2040.  
  2041. 84 Internet Gopher User's Guide
  2042.  
  2043. Starting the Gopher Server
  2044.  
  2045. Now that we have some data to serve to clients we can start the gopher server.
  2046.  
  2047. There are two separate ways to start the gopherd program. The first method starts the gopher server at boot time, the other starts the server as it is needed via the inetd superserver.
  2048.  
  2049. Continuous Servers
  2050.  
  2051. Continuous servers are started at boot time. You will need to add an entry to the boot sequence of your unix machine to insure that the server is available at all times. Typically this entry will be put into the file /etc/rc.local (for BSDish systems) or /etc/inittab (for System V systems).
  2052.  
  2053. Here is a typical entry in the rc.local file:
  2054.  
  2055. if [ -f /home/mudhoney/gopher-data ]; then  /usr/local/etc/gopherd -u nobody \ -l /home/mudhoney/GopherLog70 \ gopher-data 70 fi
  2056.  
  2057. The parameters to the gopherd program are described later in the chapter.
  2058.  
  2059. Here is a typical entry in the inittab file:
  2060.  
  2061. loc0:2:once:/etc/start-gopher-server
  2062.  
  2063. Put what would normally go into the rc.local file into the file /etc/start gopher-server.
  2064.  
  2065. Reboot the system and the gopher server will run.
  2066.  
  2067. As Needed Servers
  2068.  
  2069. If your system supports the inetd program then you can run the server using it instead of continuously. The main advantage is that the gopher server is only started when a connection is made by a gopher client, instead of running all the time.
  2070.  
  2071. To use gopher in this manner you must modify two files: /etc/services and / etc/inetd.conf
  2072.  
  2073. Internet Gopher User's Guide 85
  2074.  
  2075. Optional Features for the Gopher Server
  2076.  
  2077. Add the following line to the /etc/services file:
  2078.  
  2079. gopher 70/tcp
  2080.  
  2081. If you are running on a machine that runs NIS/YP you will need to remake your database. Other systems may require you to do something similar, consult the "ser vices" manual page on your system.
  2082.  
  2083. Next, you will add an entry to the /etc/inetd.conf file similar to the one below.
  2084.  
  2085. gopher stream tcp nowait nobody /usr/local/etc/gopherd gopherd
  2086.  
  2087. Add any options to the end of the line if you want. However be aware that some systems only support a limited number of arguments. (Suns running 4.1.x only sup port five for instance.)
  2088.  
  2089. To start the gopher server you should either reboot, or send a HUP signal to the pro cess id of the inetd process. If the process number was 12356 then you would do the following:
  2090.  
  2091. kill -HUP 12356
  2092.  
  2093. Testing
  2094.  
  2095. Once you have the server running you can test it by using the telnet program to con nect to the gopher port. Here is an example of testing the server:
  2096.  
  2097. mudhoney% telnet mudhoney 70 Trying 134.84.132.7 ... Connected to mudhoney.micro.umn.edu. Escape character is '^]'. {Press RETURN} .... Gopher output here....
  2098.  
  2099. If you don't see an error message you're ready to use your gopher server.
  2100.  
  2101. Optional Features for the Gopher Server
  2102.  
  2103. In addition to the simple functionality provided above, the gopher server does many other things, such as logging, security, etc. You can control these features of the server two ways: by editing the file gopherd.conf or by using command line options.
  2104.  
  2105. Configuring the Unix Server
  2106.  
  2107. 86 Internet Gopher User's Guide
  2108.  
  2109. The gopherd.conf File
  2110.  
  2111. Most of the optional paramters for the gopher server can be set by editing the file gopherd.conf.
  2112.  
  2113. Command Line Options
  2114.  
  2115. Some options cannot be set using the gopherd.conf file. These options can be set by adding paramters to the command line of the gopherd program. Here is a quick guide to the various options:
  2116.  
  2117. gopherd [-DCIc] [-o options] [-L load] [-l logfile] [-u user] gopher-data gopher-port
  2118.  
  2119. The following table summarizes the various command line options.
  2120.  
  2121. TABLE 10. Command Line Options for gopherd
  2122.  
  2123. Option Description
  2124.  
  2125. -D Enable copious debugging output
  2126.  
  2127. -L load Restrict connections when the load average is above load. Your server must be compiled with the LOADRESTRICT option for this to work.
  2128.  
  2129. -C Disables caching of directory retrievals. Otherwise a directory retrieval is cached in the file .cache.
  2130.  
  2131. -l logfile For each connection the server will log the time, host and transac tion to the file logfile.
  2132.  
  2133. -I Specify when running the server from inetd.
  2134.  
  2135. -o options Specify an alternative "gopherd.conf" file instead of the default.
  2136.  
  2137. -c Do not use the system call chroot(2) before processing connec tions. This relies on code that (tries to) ensures that files outside the gopher-data directory cannot be retrieved. Use with care and with the -u option.
  2138.  
  2139. -u user Run as the user named user. The server is run with reduced permis sions (i.e. other than root) which can ensure that only publically readable file are available from the server.
  2140.  
  2141. gopher-data The directory where the Gopher information resides
  2142.  
  2143. gopher-port The port number (usually 70) that the server runs at.
  2144.  
  2145. Internet Gopher User's Guide 87
  2146.  
  2147. CHAPTER 8 Go4gw - The Gopher Gateway
  2148.  
  2149. Go4gw is a program that provides gateways to many popular internet services, such as USENET news, whois, and archie. The following chapter describes go4gw and how to install and manage it.
  2150.  
  2151. Overview
  2152.  
  2153. There is quite a bit of information that could be in gopher, but isn't. The use of a Gopher Gateway makes it possible to include this information inside of Gopher space.
  2154.  
  2155. Go4gw is designed to channel these other forms of information into a format suit able for gopher. It is written in perl and allows easy extensibility, a number of pre written gateways and easy administration.
  2156.  
  2157. Gateways to the following services are provided with go4gw1.01
  2158.  
  2159. * Archie - a database of files available for anonymous ftp.
  2160.  
  2161. * Finger - a service that provides information about people logged in to UNIX or VMS hosts.
  2162.  
  2163. * Geo - the geographic name server at the University of Michigan.
  2164.  
  2165. Go4gw - The Gopher Gateway
  2166.  
  2167. 88 Internet Gopher User's Guide
  2168.  
  2169. * NNTP - the USENET news transport protocol.
  2170.  
  2171. * Webster - the Webster dictionary service available on some NeXT machines.
  2172.  
  2173. * Whois - services that provide information about users and organizations.
  2174.  
  2175. Requirements
  2176.  
  2177. You will need a UNIX machine on a network with a working version of perl. The source code for Perl can be gotten from various FTP sites on the Internet. The canonical location of perl is the anonymous ftp site prep.ai.mit.edu, as
  2178.  
  2179. perl-4.036.tar.z
  2180.  
  2181. You will, of course, need the go4gw software distribution. See "Getting the Inter net Gopher Software" on page 15 if you don't have the go4gw software.
  2182.  
  2183. Installation
  2184.  
  2185. Copy all of the perl scripts that comprise go4gw into a common directory, in our examples we'll use /usr/local/etc/go4gw as our directory.
  2186.  
  2187. You need to put the following line in /etc/services:
  2188.  
  2189. go4gw 4320/tcp
  2190.  
  2191. And the following line in /etc/inetd.conf (depending on your system type):
  2192.  
  2193. go4gw stream tcp nowait /usr/local/etc/go4gw go4gw
  2194.  
  2195. The go4gw script has a few variables you might want to change:
  2196.  
  2197. $Gconf_file = "/usr/local/etc/go4gw.conf";
  2198.  
  2199. $Gport=4320;
  2200.  
  2201. $Ghost="Slapshot.Stanford.EDU";
  2202.  
  2203. You need to set Gport to the same port as in /etc/services, and Ghost to your fully qualified host name.
  2204.  
  2205. Internet Gopher User's Guide 89
  2206.  
  2207. Writing New go4gw Gateways
  2208.  
  2209. Why aren't these two auto-magically figured out? Mainly for speed, but also because some `hostname` commands don't have the domain, some do, etc. Its eas ier just to define them here. Since all the other gateways are run in the context of this perl script, the gateways don't need any of this stuff in them.
  2210.  
  2211. Gconf_file should be set to the location of your go4gw.conf file. The format of this file is:
  2212.  
  2213. #
  2214.  
  2215. # format
  2216.  
  2217. # gateway : user : module : gopher title :
  2218.  
  2219. whois:-2:/usr/local/etc/g2whois:Whois:
  2220.  
  2221. nntp:-2:/usr/local/etc/g2nntp:USENET News:
  2222.  
  2223. webster:-2:/usr/local/etc/g2webster:Webster:
  2224.  
  2225. Where gateway is the name of the gateway, user is either a numeric uid or name, module is the name of the perl script that go4gw will dynamically load, and title is the title that will show up in the gopher menu if go4gw is sent the empty string "". If the gateway doesn't take an empty string, the title should be "" and it won't show up in the menu. By writing all your gateways so they take a "" command, you can point a link at the go4gw daemon with path set to "" and get a menu of all your gateways. The menu order will be the same order as the go4gw.conf file.
  2226.  
  2227. Writing New go4gw Gateways
  2228.  
  2229. go4gw gateways need to a follow a few simple conventions:
  2230.  
  2231. You need to have a routine called "${gateway}_main", where gateway is the name of your gateway. For example, if your gateway is called whois, then you need:
  2232.  
  2233. whois_main {
  2234.  
  2235. local($_) = @_;
  2236.  
  2237.  ...
  2238.  
  2239. }
  2240.  
  2241. In your module, for example /usr/local/etc/g2whois.
  2242.  
  2243. Go4gw - The Gopher Gateway
  2244.  
  2245. 90 Internet Gopher User's Guide
  2246.  
  2247. Your *_main will be passed the string sent to go4gw WITHOUT your gateway prefix. For example, if someone sends the following string to go4gw:
  2248.  
  2249. nntp ls su.jobs
  2250.  
  2251. Then go4gw will call &nntp_main("ls su.jobs"), after loading g2nntp.
  2252.  
  2253. You should define any variables that users might have to change at the front of your script, and prefix them with your gateway name.
  2254.  
  2255. When your gateway has to return selector string, hostname, and port, it should use the following variables:
  2256.  
  2257. $Ggw -> name of this gateway
  2258.  
  2259. $Gport -> port this gateway is running on
  2260.  
  2261. $Ghost -> host this gateway is running on
  2262.  
  2263. For example, nntp might do the following:
  2264.  
  2265. &Greply("0$Subject\t$Ggw article $group $article\t$Ghost\t$Gport");
  2266.  
  2267. So when the user selects this the client will send:
  2268.  
  2269. nntp article su.jobs 104
  2270.  
  2271. Back to the go4gw daemon, which will figure out that "article su.jobs 104" needs to get passed to g2nntp.
  2272.  
  2273. The following variables and routines are defined in go4gw, and can be used by gateways:
  2274.  
  2275. TABLE 11. Go4gw variables and routines
  2276.  
  2277. Variable/Routine Function
  2278.  
  2279. $GnotServer You can define this in perl scripts that want to include the go4gw script without running the server. See the g2nntp_groups script.
  2280.  
  2281. $Ggw Can be used by gateway routines to determine their gateway name.
  2282.  
  2283. $Gport Can be used by gateway routines to determine which port go4gw is running on.
  2284.  
  2285. Internet Gopher User's Guide 91
  2286.  
  2287. Writing New go4gw Gateways
  2288.  
  2289. Other "standard" routines and variables may be added. They will start with a `G'.
  2290.  
  2291. $Ghost Can be used by gateway routines to determine which host go4gw is running on.
  2292.  
  2293. GSERVER File handle which is opened when GopenServer is called.
  2294.  
  2295. &Grepry(reply) Sends string back to gopher client with \r\n on the end.
  2296.  
  2297. &Gabort(message)  Sends error message back to gopher client with "3mess\r\n.\r\n" on end.
  2298.  
  2299. &GopenServer(server,port) Opens TCP port on server or calls &Gabort().
  2300.  
  2301. &GcloseServer Closes server opened by &GopenServer()
  2302.  
  2303. $Gdebug Controls debug messages in &Gsend() and &Grecv()
  2304.  
  2305. $Gport Can be used by gateway routines to determine which port go4gw is running on.
  2306.  
  2307. &Gsend(cmd) Sends "cmd\r\n" to GSERVER.
  2308.  
  2309. $_ = &Grecv; Gets a response from GSERVER and strips \r and \n
  2310.  
  2311. &Gsorry Sends a message about data that cannot be delivered due to restrictions.
  2312.  
  2313. TABLE 11. Go4gw variables and routines
  2314.  
  2315. Variable/Routine Function
  2316.  
  2317. Go4gw - The Gopher Gateway
  2318.  
  2319. 92 Internet Gopher User's Guide Internet Gopher User's Guide 93
  2320.  
  2321. CHAPTER 9 Common Questions
  2322.  
  2323. This chapter contains some of the more common questions that we've had the please to answer, and answer, and answer.
  2324.  
  2325. Overview
  2326.  
  2327. The most recent version of these "Common Questions can be gotten through gopher, or through anonymous ftp to the host:
  2328.  
  2329. rtfm.mit.edu
  2330.  
  2331. as
  2332.  
  2333. /pub/usenet/news.answers/gopher-faq
  2334.  
  2335. Those without FTP access should send e-mail to mail-server@rtfm.mit.edu with "send usenet/news.answers/finding-sources" in the body to find out how to do FTP by e-mail.
  2336.  
  2337. .
  2338.  
  2339. Common Questions
  2340.  
  2341. 94 Internet Gopher User's Guide
  2342.  
  2343. Where are there publicly available logins for Gopher?
  2344.  
  2345. Here is a short list, use the site closest to you to minimize network lag.
  2346.  
  2347. We recommend running your own local gopher client though. The response time will be much faster, and you'll be able to save and print files.
  2348.  
  2349. How can I get my server published in the "Other Gophers" list?
  2350.  
  2351. When you have your server ready you can publish it to the world by sending e-mail to the maintainters of the "Other Gophers" list:
  2352.  
  2353.  If your gopher server is in Europe, send mail to: gopher@ebone.net
  2354.  
  2355.  Otherwise send mail to:
  2356.  
  2357.  gopher@boombox.micro.umn.edu
  2358.  
  2359. TABLE 12. Public Gopher Sites
  2360.  
  2361. Hostname IP# login as area
  2362.  
  2363. consultant.micro.umn.edu 134.84.132.4 gopher North America
  2364.  
  2365. pandaa.uiowa.edu 128.255.40.201 panda North America
  2366.  
  2367. gopher.sunet.se 192.36.125.2 gopher Europe
  2368.  
  2369. info.anu.edu.au 150.203.84.20 info Australia
  2370.  
  2371. gopher.chalmers.se 129.16.221.40 gopher Sweden
  2372.  
  2373. tolten.puc.cl 146.155.1.16 gopher South America
  2374.  
  2375. ecnet.ec 157.100.45.2 gopher Ecuador
  2376.  
  2377. Internet Gopher User's Guide 95
  2378.  
  2379. Overview
  2380.  
  2381. How can I set up a "CSO" phone book server? Where is the software?
  2382.  
  2383. CSO phone book servers are also known as "qi" servers. The software implementa tion can be gotten via anonymous ftp from
  2384.  
  2385. uxc.cso.uiuc.edu (128.174.5.50)
  2386.  
  2387.  as
  2388.  
  2389.  /pub/qi.tar.Z
  2390.  
  2391. You may also see this referred to as "ph", which is what most of the clients are called. A collected set of clients for Macs, PCs, VMS, VM, etc, are in the
  2392.  
  2393.  /pub/ph.tar.Z file.
  2394.  
  2395.  There is also an archive of the mailing list for qi/ph software on the same machine. It's in /pub/info-ph.archive. You may join the list by sending email to info-ph request@uxc.cso.uiuc.edu.
  2396.  
  2397.  This software is supported by Paul Pomes <p-pomes@uiuc.edu> Contact him for more information.
  2398.  
  2399. Why can't I access the University of Minnesota's UPI news?
  2400.  
  2401. The University of Minnesota has a site license for UPI news, we are not allowed to distribute it off of our campus. We get our UPI news from Clarinet. For more infor mation about getting UPI news send mail to info@clarinet.com. For information about setting up your own gopher-UPI server search the gopher-news archive for UPI.
  2402.  
  2403. When I do full-text searches I always get every document back, Why?
  2404.  
  2405. This is a problem occasionally encountered with Unix full-text indexes. It is caused by setting up the link incorrectly to a gindexd port.
  2406.  
  2407.  The Path= field should be blank when pointing to a gindexd index.
  2408.  
  2409.  Otherwise the client will send the path to the gindexd daemon, which interprets everything as a keyword. This path is likely to contain a pathname that is common to all of the indexed files. Thus a search generates hits on everything.
  2410.  
  2411. Common Questions
  2412.  
  2413. 96 Internet Gopher User's Guide
  2414.  
  2415. When I try to build the UNIX software I get an error from make: "Must be a separator on rules line #. Stop" Why?
  2416.  
  2417. This is a problem with older makes that don't understand the "include" keyword. One easy way to cope with this problem is compiling GNU make, which does understand the include keyword.
  2418.  
  2419.  If this is too difficult, remove the line:
  2420.  
  2421. include Makefile.config
  2422.  
  2423.  from all the Makefiles and paste in a copy of Makefile.config at the top of each Makefile.
  2424.  
  2425.  Or, instead of pasting you can make the client/server by going into the appropriate directory and typing:
  2426.  
  2427.  make -f ../Makefile.config -f Makefile
  2428.  
  2429. Are papers or articles describing Gopher available?
  2430.  
  2431. Gopher has a whole chapter devoted to it in :
  2432.  
  2433.  The Whole_Internet Users Guide and Catalog by Ed Krol (publisher O'Reilley & Associates, Inc; ISBN: 1-56592-025-2). (Editors note: ...Great book, go out and buy a bunch!)
  2434.  
  2435. The Internet Passport: NorthWestNet's Guide to Our World Online" By Jonathan Kochmer and NorthWestNet. Published by NorthWestNet, Bellevue, WA. 1993. 516 pp. ISBN 0-9635281-0-6. Contact info: passport@nwnet.net, or (206) 562- 3000
  2436.  
  2437.  A Students Guide to UNIX by Harley Hahn. (publisher McGraw Hill, Inc.; 1993 ISBN 0-07-025511-3)
  2438.  
  2439.  Other references include:
  2440.  
  2441.  The Internet Gopher, "ConneXions", July 1992, Interop.
  2442.  
  2443. Exploring Internet GopherSpace "The Internet Society News", v1n2 1992,
  2444.  
  2445. Internet Gopher User's Guide 97
  2446.  
  2447. Overview
  2448.  
  2449.  (You can subscribe to the Internet Society News by sending e-mail to isoc@nri.re ston.va.us)
  2450.  
  2451.  The Internet Gopher Protocol, Proceedings of the Twenty-Third IETF, CNRI, Sec tion 5.3
  2452.  
  2453. Internet Gopher, Proceedings of Canadian Networking `92
  2454.  
  2455.  The Internet Gopher, INTERNET: Getting Started, SRI International, Section 10.5.5
  2456.  
  2457.  Tools help Internet users discover on-line treasures, Computerworld, July 20, 1992
  2458.  
  2459.  TCP/IP Network Administration, O'Reilly.
  2460.  
  2461.  Balakrishan, B. (Oct 1992) "SPIGopher: Making SPIRES databases accessible through the Gopher protocol". SPIRES Fall `92 Workshop, Chapel Hill, North Carolina.
  2462.  
  2463.  Tomer, C. Information Technology Standards for Libraries, _Journal of the Ameri can Society for Information Science_, 43(8):566-570, Sept 1992.
  2464.  
  2465. On a DECstation I get the error message "/etc/svc.conf no such file or directory" when running the gopherd server, why?
  2466.  
  2467. A14: This is caused by the chroot() call in gopherd. It can be easily fixed by run ning gopherd with the -c option.
  2468.  
  2469.  Alternatively you can copy /etc/svc.conf into a directory named "etc" inside the gopher-data directory.
  2470.  
  2471. The boolean searching terms don't work for my full-text index, why?
  2472.  
  2473. This is probably because the searching is being provided by WAIS. WAIS opts to return all documents that contain a search phrase within certain limits. WAIS searches do return the documents with the highest "score" at the top, those docu ments will have the closest relevance.
  2474.  
  2475.  Alternatively you could get a booleanized version of wais from ftp.bio.indiana.edu.
  2476.  
  2477. Common Questions
  2478.  
  2479. 98 Internet Gopher User's Guide
  2480.  
  2481. When linking the Unix gopher server with WAIS I get undefined symbols, such as:
  2482.  
  2483.  log_file_name logfile PrintStatus find_value Sources NumSources
  2484.  
  2485. This happens if you make gopherd before linking in the WAIS ir/ui directories. The fix is to "make clean" or remove gopherd/{waisgopher.o,Waisindex.o}and then remake gopherd. Or link the ir/ui directories first.
  2486.  
  2487. Why don't my WAIS indexes work? I never get anything back for searches. or Why do I get "Dangling file" error messages in my logfile?
  2488.  
  2489. The problem could be in the server. The server should be run using the -c option if you want WAIS to work. Another solution is to patch the WAIS code so that it doesn't check the files on the disk. Search the gopher-news archive for "dangling". This will turn up a single document with the patch.
  2490.  
  2491. My gopher server doesn't work under inetd, why?
  2492.  
  2493. It could be that your inetd server only supports a limited amount of arguments. For instance, the maximum number of arguments to an inetd server is 5. You can get around this by combining arguments: i.e.
  2494.  
  2495.  gopherd -I -c
  2496.  
  2497.  becomes:
  2498.  
  2499.  gopherd -Ic
  2500.  
  2501.  You may also leave the port specifier off of the command line. The gopher server automagically finds out the port it's running on.
  2502.  
  2503. Help! I have PC-NFS and want to use the PC-Gopher client. How?
  2504.  
  2505. Use a piece of software called PKTMUX, available at fine ftp sites everywhere. This will let you use any packet driver application.
  2506.  
  2507.  Or, aquire a client that supports PC-NFS.
  2508.  
  2509. Internet Gopher User's Guide 99
  2510.  
  2511. Overview
  2512.  
  2513. Is there somewhere I can retrieve a list of announced gopher links? I'd like to keep a local, up-to-date list of available gopher holes without requiring our users to gopher to umn just to scan GopherSpace.
  2514.  
  2515. In the Unix client/server distribution is a perl script called "gopherdist". Gopherdist can fetch the contents of any point in GopherSpace.
  2516.  
  2517.  To dump the contents of all the North American links from gopher.tc.umn.edu do the following:
  2518.  
  2519.  % gopherdist gopher.tc.umn.edu 70 "1/Other Gopher and Information Servers/ North America" > .Links
  2520.  
  2521. Why doesn't my unix gopher client display ISO-Latin-1 characters properly?
  2522.  
  2523. It is the client's problem, the server is perfectly 8-bit transparent. The BSD curses library uses bit 8 in order to remember, whether a character has been displayed reverse. So use just /usr/5bin/cc and you get the System V curses version which is 8 bit clean.
  2524.  
  2525.  Note that this may be a problem under other versions of UNIX too...
  2526.  
  2527. What is veronica?
  2528.  
  2529. veronica: Very Easy Rodent-Oriented Net-wide Index to Computerized Archives.
  2530.  
  2531.  veronica offers a keyword search of most gopher-server menu titles in the entire gopher web. As archie is to ftp archives, veronica is to gopherspace. A veronica search produces a menu of gopher items, each of which is a direct pointer to a gopher data source. Because veronica is accessed through a gopher client, it is easy to use, and gives access to all types of data supported by the gopher protocol.
  2532.  
  2533.  To try veronica, select it from the "Other Gophers" menu on Minnesota's gopher server, or point your gopher at:
  2534.  
  2535. Name=veronica (search menu items in most of GopherSpace)
  2536.  
  2537. Type=1
  2538.  
  2539. Port=70
  2540.  
  2541. Common Questions
  2542.  
  2543. 100 Internet Gopher User's Guide
  2544.  
  2545. Path=1/veronica
  2546.  
  2547. Host=futique.scs.unr.edu
  2548.  
  2549. Internet Gopher User's Guide 101
  2550.  
  2551. Symbols /B Switch 45 /etc/inetd.conf 85 /etc/inittab 84 /etc/rc.local 84 /etc/services 85 /etc/svc.conf 97 /NOSWAP 46 /R Switch 44 /SHUTUP 46 "q 95
  2552.  
  2553. Numerics 3270 38 3Com 3c523 35
  2554.  
  2555. A AdmitOne 25 Alternate Views 23 anonymous ftp 71 Another Gopher 28
  2556.  
  2557. B Banyan Vines 34
  2558.  
  2559. Binary Files 54 BMKCVT 36 Bookmarks 26 boombox.micro.umn.edu 18, 34 BOOTP 40
  2560.  
  2561. C Cancel All Requests 27 Clarkson 33, 34, 35 Compactor 22 compress 81 consultant.micro.umn.edu 94 CptExpand 22 Crynwr 33 CSO 82, 95
  2562.  
  2563. D Dangling file 98 Digital Bookshelf 70 DNS 79 DOS 33 DownLine 25
  2564.  
  2565. Index
  2566.  
  2567. Index
  2568.  
  2569. 102 Internet Gopher User's Guide
  2570.  
  2571. E ecnet 94 ecnet.ec 94
  2572.  
  2573. F Finder 23 FTP 36, 93 ftp 80 ftp.bio.indiana.edu 72 ftp.think.com 72
  2574.  
  2575. G Gateways 42 Get Attribute 25 GIF 23, 54 Gilbert, Don 72, 74 gindexd 95 gopher.chalmers.se 94 gopher.sunet.se 94 gopher.tc.umn.edu 38 gopher2.tc.umn.edu 38 Gopherd 80 gopherd 80 gopher-data 80 gopherdist 99 gopher-faq 93 gzip 81
  2576.  
  2577. H helper application 23 HQX 82
  2578.  
  2579. I Icky Clam Chowder 83 Import Bookmarks 26 inetd 84, 98 info.anu.edu.au 94 ISO Latin-1 28, 31 ISO-Latin-1 99 Item Attributes 26
  2580.  
  2581. J JPEG 23
  2582.  
  2583. K Kanji 28 Kuypers, Jean-Pierre 31
  2584.  
  2585. L libbtree.a 71 libftw.a 72 libtext.a 71 Links 81 Logical Operators 56
  2586.  
  2587. M MacWrite II 28 Maes, Pascal 31 Makefile.config 96 Monaco 24 MPEG 9 MS-DOS 23, 47
  2588.  
  2589. N Nameservers 41 NCSA Telnet 23 Netmask 41 NeXT 70 NeXTtext.tar.Z 71
  2590.  
  2591. P pandaa.uiowa.edu 94 PC Gopher II 36 PC Gopher III 33 ph 95 Phone Book 54 PHONE.EXE 35 PICT 23 Pirard, Andre 31 PKTMUX 98 Pomes, Paul 95 Preferences folder 29
  2592.  
  2593. Q Quicktime 9
  2594.  
  2595. R r tn32 36 Recent menu 25 rtfm.mit.edu 93
  2596.  
  2597. S shell scripts 81 SitExpan 22 SLIP 27, 34, 35 StuffIt 22
  2598.  
  2599. Internet Gopher User's Guide 103
  2600.  
  2601. Index
  2602.  
  2603. svc.conf 97 System 20 System 7 20 System Folder 29
  2604.  
  2605. T Telne 36 TN3270 23, 40 tolten.puc.cl 94 TurboGopher 19 TurboGopher Settings 29
  2606.  
  2607. U UMSLIP.COM 35 UPI news 95
  2608.  
  2609. V veronica 99 VT100 38, 39
  2610.  
  2611. W WAIS 80, 81, 97 wais-8-b5.1.tar.Z 72 waisindex 70 waissearch 72 waisserver 72 Webster 70 WorldScript 28
  2612.  
  2613. X XCMD 32
  2614.  
  2615. Y Yummy Clam Chowder 83